Help Center
WooCommerce Search Integration
Overview
ExpertRec integrates with WooCommerce to provide AI-powered search, autocomplete, and faceted filtering for your online store. It works alongside your existing WooCommerce product catalog and syncs product data automatically via webhooks.
Installation Option A: WordPress Plugin (Recommended)
- In WordPress Admin, go to Plugins > Add New
- Search for “WP Fastest Site Search”
- Click Install Now, then Activate
- Go to Settings > ExpertRec Search
- Enter your ExpertRec Site ID (found in your ExpertRec dashboard under Install Settings)
- Click Save — the plugin automatically detects WooCommerce and begins syncing products
Installation Option B: Manual Code Integration
If you prefer not to use the plugin, add the ExpertRec embed code directly to your theme:
- Copy the embed code from ExpertRec Dashboard > Install Settings
- In WordPress Admin, go to Appearance > Theme Editor > footer.php
- Paste the code before the
</body>tag - Click Update File
Product Data Sync
The plugin automatically configures WooCommerce webhooks to keep your search index up to date:
- Supported webhook events: product.created, product.updated, product.deleted, order.completed
- Variable products: All product variations are synced and searchable
- Product attributes: Size, color, material, and other WooCommerce attributes are automatically indexed as filterable facets
Custom Field Mapping
Map WooCommerce custom fields to ExpertRec search fields for richer search and filtering:
- Go to ExpertRec Dashboard > Field Mapping
- Click Add Custom Field
- Enter the WooCommerce meta key (e.g.,
_price,_sale_price,_stock_status,_sku) - Map it to the corresponding ExpertRec field
Common WooCommerce fields to map: _price, _sale_price, _stock_status, _sku, _weight, product attributes (pa_color, pa_size, etc.)
Search Widget Placement
- Automatic replacement: The plugin automatically replaces the default WooCommerce search form
- Shortcode: Use
[expertrec_search]to place the search box anywhere on your site - Widget: Add via Appearance > Widgets > ExpertRec Search Box
Troubleshooting
- Plugin conflicts: Deactivate other search plugins (SearchWP, Relevanssi, Ajax Search Lite) and test
- Products missing from search: Check webhook delivery in WooCommerce > Status > Webhooks — look for failed deliveries
- Styling issues: Use the Custom CSS editor in ExpertRec dashboard to override conflicting theme styles
- Variable products not showing variants: Ensure product attributes are set to “Used for variations” in WooCommerce product settings