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. Add JavaScript snippet to <head> tag

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. Just paste your XML feed URL and add a JavaScript snippet to your header. If you can 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 €49/month (vs €200-€800 for Algolia), takes 5 minutes to set up (vs 8-16 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 edit header? Ask your developer to add the JavaScript snippet to <head> — takes 2 minutes.

Products missing? Check XML for required fields (title, link, price, image). Validate with Google Merchant Center.


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.