Integration Guides
PrestaShop Integration
Install the SearchX module from your PrestaShop back office.
Overview
The SearchX module adds SearchX to PrestaShop 8.2 and 9.x. Once installed and configured, it:
- Replaces your theme's search box with the SearchX search bar and adds a SearchX results page. Nothing to edit in your theme.
- Builds your product feed itself, with combinations as variations, one feed per shop language.
- Adds products to the PrestaShop cart, including the size or colour chosen in the AI assistant.
- Runs the AI shopping assistant (Agentic AI Search), which can see the shopper's cart.
- Optionally: adds to PrestaShop's own wishlist, sends paid orders for Sales from search, waits for cookie consent, serves your AI Visibility files and agent shopping profile from your own domain, and logs AI crawler visits.
If SearchX cannot load, your theme's own search stays in place: nothing is hidden until the SearchX search bar is ready.
Requirements
PrestaShop 8.2 or 9.x, with friendly URLs on (Shop Parameters → Traffic & SEO), and administrator access to the back office. You need your SearchX App ID and API Key, and for the AI assistant a public browser key (see Step 3).
The module is tested with PrestaShop's default themes, Hummingbird (9.x) and Classic (8.2). On another theme, if the search bar is not detected, your theme's own search keeps working.
Step 1: Download the module
- Open your application in the SearchX dashboard and go to the Details tab.
- Scroll to Install JS Snippet and select the PrestaShop tab.
- Click Download SearchX PrestaShop module to get
searchx-prestashop.zip.
Keep the zip as it is: do not unzip it.
Step 2: Install it in your back office
- Go to Modules → Module Manager and click Upload a module.
- Drop
searchx-prestashop.zipinto the dialog. - When PrestaShop says the module is installed, click Configure.
To update later, upload the new zip the same way. Your settings are kept.
Step 3: Configure credentials
Fill in the top of the settings page and click Save.
| Field | What to enter |
|---|---|
| Enable SearchX | Yes when you are ready to go live. |
| Application ID | Your SearchX App ID, from the application's Details tab. |
| API key | Your application's private API key, from the API Keys tab. It stays on your server and is never sent to shoppers. |
| Search requests | Direct to SearchX (recommended), or Through this shop. See below. |
| Public browser key | Needed for Direct. In SearchX: your application, API Keys, New key, Public browser search. It can only search, and only from your shop's address. |
| API URL, SDK URL, Search page route | Leave as they are unless SearchX support tells you otherwise. |
Direct to SearchX is faster and is required for the AI shopping assistant: shoppers' browsers call SearchX with the public browser key. Through this shop needs no extra key: your shop forwards each search with the private key, so search works, but the AI assistant is not available.
Never paste the private key as the public key
Direct shows the public browser key to every visitor. The module refuses your private API key in that field, and the connection test flags any other key that is not a public browser key.
The connection test
Each time you save with SearchX enabled, the module tests the connection, and Test connection at the top of the page runs it again. It tells you whether SearchX accepts your Application ID and API key, and in Direct mode whether it accepts the public browser key from your shop's address. The most common problem it catches is a website address in SearchX that does not match your shop (with or without www, http or https): it names the address SearchX expects, so you can set the same one on your SearchX application.
Step 4: Connect your product feed
The module builds your product feed in Skroutz Standard XML, with combinations as variations.
- On the module's settings page, copy the Product feed URL.
- In SearchX, open your application's feed settings, paste it as the Feed URL with the feed type Skroutz Standard XML, and save.
- Click Import now and wait for the import to finish.
SearchX fetches the feed itself on its schedule; the module never sends your catalogue anywhere.
- Several languages: the module shows one feed URL per active shop language. Use one SearchX application per language, each with its own feed URL.
- Multistore: configure the module, and its feed, for each shop.
Step 5: Check your storefront
Open your shop in a private window:
- The header search box is the SearchX search bar, with results as you type.
- Enter opens the SearchX results page.
- Add to cart from a result adds the product to your PrestaShop cart.
- With Agentic AI Search on, the AI button opens the assistant, it shows products, and Add to cart there adds the chosen size or colour.
If nothing appears, turn on Debug mode on the module's settings page, reload, and look for messages prefixed [SearchX] in the browser console. Turn it off afterwards.
Optional settings
Each of these is off until you switch it on.
Wishlist
Enable wishlist integration shows a heart on SearchX results that adds the product to the shopper's list in PrestaShop's own Wishlist module (blockwishlist, included with PrestaShop 8.2 and 9). That module must be enabled in Modules → Module Manager; if it is not, SearchX shows no heart. Wishlists belong to customer accounts, so a guest who taps the heart is taken to sign in and brought back.
Cookie consent
The SearchX widget sets two first-party cookies, _sx_sid_{app_id} (the search session) and _sx_last_sid_{app_id} (the last session with search activity), so orders can be matched to searches. If your shop asks shoppers for cookie consent, turn on Wait for the shopper's consent before setting SearchX cookies. SearchX then sets no cookie until your cookie banner reports the shopper's choice:
// ✅ Once the shopper allows statistics cookies
window.searchxSetCookieConsent(true);
// ✅ If the shopper refuses or withdraws consent: the SearchX cookies are deleted
window.searchxSetCookieConsent(false);
The function is defined at the top of every page, so your banner can call it before the SearchX widget has loaded. Search works either way; without consent, an order counts toward your total revenue but not the revenue from search.
With Cookiebot, for example (statistics category):
<script>
function searchxConsent() {
window.searchxSetCookieConsent(
Boolean(window.Cookiebot && Cookiebot.consent && Cookiebot.consent.statistics),
);
}
window.addEventListener('CookiebotOnAccept', searchxConsent);
window.addEventListener('CookiebotOnDecline', searchxConsent);
</script>
Sales from search
Send orders to SearchX fills the Sales from search card: how many orders, and how much revenue, came from search. Your shop sends each order when it is paid, cancelled or refunded, with its lines, total and currency, from your server with the private API key. It never sends the customer's name, email, address or phone.
- An order counts as paid when its status is one PrestaShop marks as paid (Payment accepted, Processing in progress, Shipped, Delivered, Remote payment accepted, and your own statuses with Consider the associated order as paid set). Bank wire, cheque and cash on delivery are sent once they reach such a status.
- The shopper's search session is saved with their cart, so orders confirmed later by a payment gateway's callback still count.
- Orders are sent after the page has loaded, so checkout never waits for SearchX. If SearchX cannot be reached, a warning is added to the order in PrestaShop's log.
AI Visibility files on your domain
With SEO Fixes or AI Visibility on in SearchX, the module can serve these files from your shop's own address. Each switch is off by default, and each file is served only while SearchX serves it; otherwise your shop answers 404.
| Switch | What your shop answers |
|---|---|
| Serve llms.txt | /llms.txt |
| Serve the product sitemap | The Sitemap path (default /sitemap-searchx.xml, so it never replaces your shop's own sitemap.xml). Use the path set in SearchX. |
| Add product schema to product pages | SearchX's Product schema in each product page, only on pages that have none: your theme's own Product schema is never doubled. |
| Serve the IndexNow key file | /{key}.txt. Saving with it on fetches your store's IndexNow key from SearchX. |
A file you already have at the same address is never replaced. Test fetches each switched-on address from your shop, as an AI crawler would, and says what answers it.
Default themes already have product schema
Classic and Hummingbird print their own Product schema, so on them Add product schema to product pages adds nothing. It helps on themes without one.
Agent shopping profile
Publish my agent shopping profile on my domain answers /.well-known/ucp with the profile SearchX publishes while AI Visibility and Agent shopping are on in SearchX, so AI shopping agents find your store. If something else already answers that address, the module leaves it and says so. After saving, the settings page shows what an agent finds there.
AI crawler log
Log AI crawler visits shows in SearchX which AI crawlers (ChatGPT, Claude, Perplexity, Google, Bing) visit your pages. Each visit is checked on your server against the crawler's published IP list, and only the crawler, the page type and the result are sent: never a visitor's address, user agent or the page's address. It needs Crawler log on store pages on in SearchX.
Visitor address comes from is the direct connection by default. Choose Cloudflare or a proxy header only when every request reaches your shop through it; the settings page suggests a different setting when your own request looks like it came through one. Counts are a floor: pages served from a page cache never reach the module.
Known limits
- Variants in ordinary search results: adding to cart from a search result adds the product's default combination. The AI assistant adds the size or colour the shopper chose.
- One language per SearchX application: use one application per shop language (see Step 4).
- Friendly URLs must be on for the AI Visibility files and the agent shopping profile.
Updating, disabling, and uninstalling
- Update: Modules → Module Manager → Upload a module with the new zip. Settings are kept, and any new setting starts off.
- Disable temporarily: set Enable SearchX to No and save. Your theme's own search returns at once; settings are kept.
- Uninstall: Modules → Module Manager, SearchX, Uninstall. This removes the module's settings, its table of search sessions for orders and its cached files. Your SearchX application and indexed catalogue are not deleted.
Next Steps
- Agentic AI Search: set up the shopping assistant.
- Track sales from search: connect paid orders to your search analytics.
- Customize the widget appearance with Widget Styling.