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 search engines that ship with WooCommerce and OpenCart fail on:

  • Typos — "adiddas" returns zero results
  • Synonyms — "sofa" ≠ "couch"
  • Natural language — "cheap laptop" returns zero results
  • Greeklish (Greek stores) — "tsanta" returns zero results

72% of e-commerce sites fail basic search expectations (Baymard, 2024). Third-party search engines (SearchX, Algolia, Elasticsearch) fix this.

The result: Fewer zero-result searches, higher conversions, better analytics.

Which platforms support search integration?

Any e-commerce platform that has an XML product feed:

  • ✅ WooCommerce
  • ✅ OpenCart
  • ✅ Custom platforms (as long as you can export XML)

Most e-commerce platforms generate XML feeds automatically (Google Merchant Center, Facebook Catalog, or Skroutz format).

How search integration works

Step 1: Export your products as an XML feed

  • WooCommerce: Install "Product Feed PRO" plugin (free)
  • OpenCart: Install "Google Merchant Feed" extension (free)

Step 2: Import the feed into your search engine

  • SearchX: Paste the feed URL → click "Import"
  • Algolia: Use their CLI tool to upload the feed
  • Elasticsearch: Write a custom import script

Step 3: Add the search widget to your site

  • SearchX: Copy/paste a JavaScript snippet into your theme's <head> tag
  • Algolia: Install their SDK and build a custom UI
  • Elasticsearch: Build a custom frontend

Total time:

  • SearchX: 5 minutes
  • Algolia: 8-16 hours
  • Elasticsearch: 40-80 hours

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 searchxengine.ai/register
  2. Create an account (14-day free trial, no credit card)
  3. Click "Add New Store"
  4. Paste your XML feed URL
  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. After import, SearchX generates a JavaScript snippet
  2. Go to WordPress admin → Appearance → Theme File Editor
  3. Open header.php
  4. Paste the snippet before </head>
  5. Save

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 searchxengine.ai/register
  2. Create an account (14-day free trial, no credit card)
  3. Click "Add New Store"
  4. Paste your XML feed URL
  5. Click "Import Products"

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

  1. After import, SearchX generates a JavaScript snippet
  2. Go to OpenCart admin → Design → Theme Editor
  3. Open header.twig
  4. Paste the snippet before </head>
  5. Save

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"?>
<rss version="2.0">
  <channel>
    <item>
      <g:id>12345</g:id>
      <g:title>Nike Air Max 90</g:title>
      <g:description>Classic Nike sneakers</g:description>
      <g:link>https://yourstore.com/products/12345</g: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 searchxengine.ai/register
  2. Create an account (14-day free trial, no credit card)
  3. Click "Add New Store"
  4. Paste your XML feed URL
  5. Click "Import Products"

Step 4: Add search widget

  1. After import, SearchX generates a JavaScript snippet
  2. Add the snippet to your website's <head> tag
  3. Save

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 — auto-generated facets (price, brand, size, color)
  • Autocomplete — results appear as they type
  • Fast results — sub-200ms response time

You get:

  • Real-time analytics — see what customers search for
  • Zero-result tracking — fix searches that fail
  • Conversion metrics — track search-driven revenue

Do I need a developer?

No. SearchX requires zero backend code. You just:

  1. Paste your XML feed URL (1 minute)
  2. Copy/paste a JavaScript snippet (2 minutes)

If you can edit your theme's header file, you can install SearchX.

What if I already use Algolia or Elasticsearch?

You can switch from Algolia or Elasticsearch to SearchX in 5 minutes:

  1. Import your XML feed into SearchX
  2. Replace Algolia/Elasticsearch widget with SearchX widget
  3. Remove old search code

Why switch?

  • Simpler: SearchX takes 5 minutes to set up vs 8-16 hours for Algolia
  • Cheaper: SearchX costs €49/month flat vs €200-€800/month for Algolia
  • Greeklish: SearchX has native Greeklish support (Greek stores)

Integration checklist

Before integrating SearchX, make sure you have:

  • ✅ An XML product feed (Google Merchant, Facebook Catalog, or Skroutz)
  • ✅ Access to your theme's header file (to add the JavaScript snippet)
  • ✅ Admin access to your e-commerce platform

If you have all three, integration takes 5 minutes.

Common integration issues (and fixes)

Issue 1: "I don't have an XML feed"

Fix: Install a plugin to generate the feed:

  • WooCommerce: "Product Feed PRO" (free)
  • OpenCart: "Google Merchant Feed" (free)

Issue 2: "I can't edit my theme's header file"

Fix: Ask your developer to add the JavaScript snippet to your theme's <head> tag. It takes 2 minutes.

Issue 3: "My XML feed has errors"

Fix: Use Google Merchant Center's feed validator to check for errors. Fix missing fields (title, link, price, image).

Issue 4: "SearchX doesn't import all my products"

Fix: Check your XML feed. SearchX skips products with:

  • Missing required fields (title, link, price, image)
  • Invalid XML syntax
  • Duplicate IDs

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

Related: See pricing & start free trialCompare SearchX to AlgoliaRead how to set up search in 5 minutes

Sources: Baymard Institute 2024

Share

More from the Blog

Ready to Transform Your E-Commerce Search?

Start your free 14-day trial or book a personalized demo with our team.