R

RT Product Search Bar for WooCommerce – Live AJAX Search, SKU Search, Filters & Search Popup

0/5 (0 ratings) — active installs Updated Nov 15, 2026
The search popup with popular searches, recent searches and recommended products.

The search popup with popular searches, recent searches and recommended products.

Raintech Product Search Bar for WooCommerce is a fast, modern WooCommerce product search plugin. It replaces the slow default WordPress search with a live AJAX search popup: visitors click your search bar (or press / or Ctrl/Cmd + K), the popup opens with the cursor already in the field, and matching products appear instantly as they type – with images, prices, stock status, categories, colour and size filters, price slider and sorting.

It is built for stores whose customers search by product name, SKU, batch number or LOT number, and for any shop that wants search that actually finds products – even when the visitor misspells a word, uses the plural, or leaves out an accent. Everything runs on your own server with a lightweight custom search index: no monthly fee, no external search service, no data leaving your site.

Support: raintech.pages.dev/contact

What is this plugin?

It is a complete product-search system for WooCommerce made of four parts that work together:

  1. The search bar and popup – a clean search field (shortcode, block, Elementor widget, widget, or your theme’s own search field) that opens a full-width popup with popular searches, recommended products, recent searches and live results.
  2. The search engine – a custom search index with relevance scoring, AND/OR matching, typo correction, synonyms, plurals, SKU, variation and custom-field search.
  3. The sidebar filters – categories, price range, “In stock only”, “On sale”, and product attributes such as colour, size or brand, shown as checkboxes, radio buttons, buttons, colour swatches or image swatches.
  4. The control panel – a clean settings page in WooCommerce Product Search with an Index manager, search analytics, appearance options, and export/import of all settings.

Why store owners choose it

  • Finds what people mean – typo correction (“hodie” finds “hoodie”), plurals, synonyms, accents and partial words.
  • Finds products by code – SKU, variation SKU, product ID and any custom field such as batch or LOT numbers.
  • Helps people narrow down – filter by category, colour, size, price, stock and sale status without leaving the popup.
  • Fast – results come from an indexed table, not slow LIKE '%…%' queries over post content. Optional result caching.
  • Works with your theme – use the shortcode, a block, an Elementor widget, or point the plugin at the search field you already have.
  • Shows you what customers want – built-in search analytics reveal top searches and searches that find nothing.
  • Privacy-friendly – no external services, no cookies, no personal data stored.

How it works (in plain language)

  1. You install the plugin and click Build index once. The plugin reads your products (title, description, SKU, categories, tags, attributes, custom fields, variations) and stores every searchable word in its own small database table.
  2. A visitor clicks the search bar. The popup opens and shows popular searches, recent searches and recommended products.
  3. As the visitor types, the plugin looks the words up in the index, ranks products by relevance (a match in the title counts more than a match in the description – you can change the weights), and returns results in a few milliseconds.
  4. If nothing matches, the plugin tries close spellings from your own catalogue and shows “Showing results for…” or “Did you mean…”.
  5. The visitor narrows results with the sidebar filters, then clicks a product – or “View all results”.
  6. When you add or edit a product, the index updates automatically.

Live search popup

  • Click anywhere on the bar to open a full-width popup; the input is focused immediately (keyboard: Enter / Space)
  • Popular searches and recommended products (featured, best sellers, newest or hand-picked) shown before the visitor types
  • Recent searches, kept only in the visitor’s own browser, with a Clear link
  • Live (AJAX) results while typing, or search-on-Enter if you prefer
  • Search-term highlighting in titles
  • Elegant loading states: skeleton placeholders and a progress line instead of “Loading…” text
  • Mobile full-screen mode, “View all results” button, custom “nothing found” text, clear (×) button
  • Keyboard shortcut: / and/or Ctrl/Cmd + K
  • Smooth card design with hover effect and floating carousel arrows

Sidebar filters (new)

  • Categories with product counts
  • Product attributes – colour, size, brand or any global attribute, with live counts
  • Five display styles per attribute: checkbox list, radio buttons (one value at a time), buttons, colour swatches, image swatches
  • Colour swatches use the value’s name as a colour (“Red”, “#ff0000”) or a custom colour you pick per value
  • Image swatches let you choose an image per value from the media library
  • “In stock only” and “On sale” quick filters (shown only when they would change the results)
  • Price range slider and sorting (relevance, price, newest, name)
  • Reset filters button; filters clear automatically for a new search
  • A dedicated Sidebar filters settings tab with a switch for every filter and a mapping table for attributes

Smart search engine

  • Custom search index that stays in sync automatically when products are added, edited, trashed or deleted
  • Relevance scoring with adjustable weights per source: title, content, excerpt, SKU/ID, categories, tags, attributes, custom fields
  • AND / OR matching and an exact-match option
  • Typo correction and “did you mean” suggestions
  • Plural folding (capsule / capsules), accent-insensitive matching (café / cafe), stop words and single-word synonyms
  • Search product attributes, taxonomies, custom fields and shortcode output
  • Variations in results (found by variation SKU or attribute)
  • Category and tag results shown beside products
  • Result caching with automatic invalidation

Search by SKU, batch number and LOT number

Customers who know a part number don’t want to scroll. The plugin indexes the product SKU, every variation SKU, the product ID and any custom field you choose (for example batch_number or lot_number). Type a code – or part of it – and the right product appears at the top.

Use your existing search field (no shortcode needed)

Enter the class or ID of any search input already on your site (for example .search-field or #site-search) under WooCommerce Product Search Integrations. Clicking and/or focusing that field opens the popup. Turn on Seamless integration to take over common theme search forms automatically.

Control what appears

  • Include or exclude categories and tags
  • Show only in-stock, out-of-stock, on-sale or not-on-sale products
  • Respect WooCommerce catalog visibility
  • Hide individual products from search
  • Show or hide image, description, categories, price, sale badge, SKU, stock status, rating, featured badge, out-of-stock items

Appearance

  • Light, dark or “match visitor’s device” theme
  • Adjustable popup width, corner roundness and backdrop darkness
  • Your accent colour everywhere (buttons, focus, progress, filters)
  • Looks consistent in any theme: styles are scoped to the popup

Search analytics

  • See top searches and searches that found nothing – the quickest way to spot missing products, synonyms and spelling problems
  • One click to add a term to Popular searches, or fill Popular searches automatically from real searches
  • Stores only the term, count and whether anything was found – no IP addresses, no user data
  • Choose how many days to keep records, or turn logging off

Integrations

  • Gutenberg block, Elementor widget, shortcode and classic widget
  • Google Analytics search events (gtag, Google Tag Manager dataLayer or analytics.js)
  • Polylang and WPML – results follow the visitor’s language
  • Works with full-page caching: public REST endpoints need no nonce

Admin tools

  • Clean React-based settings page in WooCommerce Product Search
  • Index tab with batch rebuild and progress bar
  • Export, import and reset all settings
  • Unsaved-changes warning and a notice when the index needs rebuilding

Settings tabs at a glance

  • Search bar – placeholder, minimum characters, accent colour, behaviour switches
  • Search engine – sources and weights, AND/OR, exact match, typo correction, stop words, synonyms, suggestions
  • Index – build/rebuild/clear, variations, custom fields (batch/LOT), extra taxonomies, auto-sync
  • Appearance – theme, width, roundness, backdrop, keyboard shortcut, recent searches
  • Results – products shown, which data to display, category/tag results
  • Sidebar filters – filter switches and the attribute mapping (checkbox, radio, buttons, colour or image swatches)
  • Filters – which products may appear (categories, tags, stock, sale, visibility, hidden products)
  • Popular & recommended – popular searches and recommended products
  • Analytics – top searches and searches with no results
  • Integrations – existing search field, seamless mode, Google Analytics, language, cache, placement help
  • Tools – export, import, reset

Accessibility

Focus trap, Esc to close, focus returns to the search bar, visible focus rings, screen-reader labels, labelled loading states and reduced-motion support.

Developer notes

  • Public REST endpoints under /wp-json/rtps/v1/: search, suggestions, log
  • Admin REST endpoints (require manage_woocommerce): settings, products, terms, index/*, cache/clear, analytics
  • Source code in src/ (React + SCSS); compiled files are committed in build/

Shortcode

[raintech_search_bar]
[raintech_search_bar placeholder="Find a product"]

Development

Source is in src/ (React + SCSS). Compiled files are committed in build/.

npm install
npm run build (or `npm start` to watch)<h3>Privacy</h3>

The plugin makes no external requests and sets no cookies. If analytics logging is on, it stores aggregated search terms (term, count, result status, date) in your own database – no IP addresses or personal data. The visitor’s recent searches are stored only in their own browser.