How to integrate search with your e-commerce platform (WooCommerce, OpenCart)

How to integrate search with your e-commerce platform (WooCommerce, OpenCart)

Why integrate a third-party search engine?

Default WooCommerce and OpenCart search fails on typos ("adiddas" → zero results), synonyms ("sofa" ≠ "couch"), and Greeklish ("tsanta" → zero results).

72% of e-commerce sites fail basic search expectations (Baymard, 2024). AI search fixes this.

Integration overview

Works with any platform that exports XML feeds (WooCommerce, OpenCart, custom platforms). Takes 5 minutes:

  1. Export products as XML (Google Merchant Center format)
  2. Import feed into SearchX (paste URL)
  3. Connect the widget with your App ID and API key (official plugin for WooCommerce, extension for OpenCart, snippet for Shopify and custom sites)

WooCommerce integration (step-by-step)

Step 1: Get your XML product feed (2 minutes)

  1. Install "Product Feed PRO for WooCommerce" plugin (free)
  2. Go to Products → Product Feed
  3. Click "Create New Feed"
  4. Select "Google Merchant Center XML"
  5. Click "Generate Feed"
  6. Copy the feed URL (e.g., https://yourstore.com/feed.xml)

Step 2: Import products into SearchX (1 minute)

  1. Go to admin.searchxengine.ai/register
  2. Create an account (14-day free trial, no credit card)
  3. Click "Create Application"
  4. Paste your XML feed URL and select the feed type
  5. Click "Import Products"

SearchX reads your feed and imports titles, descriptions, images, prices, categories, and attributes.

Step 3: Add search widget to your site (2 minutes)

  1. In WordPress, go to Plugins → Add New, search "searchx", and install and activate the official SearchX for WooCommerce plugin
  2. Go to WooCommerce → Settings → SearchX
  3. Paste the App ID and API key from your SearchX dashboard (the key stays on your server, never in the browser)
  4. Add the [searchx_bar] shortcode where your search bar lives and [searchx_page] on your results page
  5. Save

Full walkthrough: WooCommerce integration guide.

That's it. SearchX is now live on your WooCommerce store.

OpenCart integration (step-by-step)

Step 1: Get your XML product feed (2 minutes)

  1. Install "Google Merchant Center Feed" extension (free)
  2. Go to Extensions → Feeds → Google Merchant
  3. Click "Generate Feed"
  4. Copy the feed URL

Step 2: Import products into SearchX (1 minute)

  1. Go to admin.searchxengine.ai/register
  2. Create an account (14-day free trial, no credit card)
  3. Click "Create Application"
  4. Paste your XML feed URL and select the feed type
  5. Click "Import Products"

Step 3: Add search widget to your site (2 minutes)

  1. Download the SearchX extension from your application's Details tab (or find it on the OpenCart Marketplace)
  2. Go to OpenCart admin → Extensions → Installer and upload the .ocmod.zip (OpenCart 3: then refresh Extensions → Modifications)
  3. Go to Extensions → Extensions → Modules and install SearchX
  4. Paste your App ID and API key and set Status to Enabled
  5. Save

The extension injects the widget for you, so supported themes need no template edits. If your theme isn't auto-detected, the OpenCart integration guide covers manual template integration.

Done. SearchX is now live on your OpenCart store.

Custom platform integration

If you use a custom e-commerce platform (not WooCommerce or OpenCart), you can still integrate SearchX:

Step 1: Export your products as XML

Export your product catalog as:

  • Google Merchant Center XML (recommended)
  • Facebook Catalog XML
  • Skroutz XML (Greek stores)

Format:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
  <channel>
    <title>Your Store</title>
    <link>https://yourstore.com</link>
    <description>Product feed for Your Store</description>
    <item>
      <g:id>12345</g:id>
      <title>Nike Air Max 90</title>
      <description>Classic Nike sneakers</description>
      <link>https://yourstore.com/products/12345</link>
      <g:image_link>https://yourstore.com/images/12345.jpg</g:image_link>
      <g:price>120.00 EUR</g:price>
      <g:brand>Nike</g:brand>
      <g:color>White</g:color>
    </item>
  </channel>
</rss>

Step 2: Host the XML file

  • Upload the XML file to your server
  • Make it publicly accessible (e.g., https://yourstore.com/feed.xml)

Step 3: Import into SearchX

  1. Go to admin.searchxengine.ai/register
  2. Create an account (14-day free trial, no credit card)
  3. Click "Create Application"
  4. Paste your XML feed URL and select the feed type
  5. Click "Import Products"

Step 4: Add search widget

  1. Add the SearchX SDK scripts to your page
  2. Add container elements where the search bar and results should appear
  3. Initialize the SDK with your App ID and API key, then save

The Quick Start has the exact snippet. On Shopify, follow the Shopify integration guide.

Done. SearchX is now live on your custom platform.

What happens after integration?

After integrating SearchX, customers get:

  • Typo tolerance — "adiddas" returns Adidas products
  • Synonym support — "sofa" returns couches
  • Greeklish support (Greek stores) — "tsanta" returns bags
  • Smart filters — facets built from your feed attributes (price, brand, size, color)
  • Autocomplete — results appear as they type
  • Fast results — sub-50ms response time

You get:

  • Real-time analytics — see what customers search for
  • Zero-result tracking — fix searches that fail
  • Conversion metrics — track clicks and add-to-cart from search

Do I need a developer?

No backend development needed. Paste your XML feed URL, then install the official plugin (WooCommerce) or extension (OpenCart), or paste the snippet into your theme (Shopify and custom sites). If you can install a plugin or edit your theme files, you can install SearchX.

Switching from Algolia or Elasticsearch

Migration takes 5 minutes: import your XML feed, replace the old widget with SearchX, remove old code.

Why switch? SearchX costs from €49/month (vs €200-€800 for Algolia), takes 5 minutes to set up (vs 3+ hours), and has native Greeklish support.

Common issues

No XML feed? Install "Product Feed PRO" (WooCommerce) or "Google Merchant Feed" (OpenCart) — both free.

Can't install plugins or edit your theme? Ask your developer to add the SearchX snippet with your App ID and API key — takes 2 minutes.

Products missing? Check that every item has the required fields (g:id, title, link); add g:image_link and g:price so products show images and prices. See the Google Merchant feed guide.


SearchX is an AI-powered search engine for e-commerce. Works with WooCommerce, OpenCart, and any platform with an XML feed. 5-minute setup, from €49/month, 14-day free trial. See it live · Check the docs

Related: See pricing & start free trial • Compare SearchX to Algolia • Read how to set up search in 5 minutes

Sources: Baymard Institute 2024

Share

More from the Blog

Ready to Transform Your E-Commerce Search?

Book a free 30-minute call and we do the integration together, for free. Or start your 14-day free trial.