WooCommerce Product Search

The WooCommerce Product Search extension helps to control and improve the relevance of search results and adds facilities that supply instant results while visitors search for products.

Instant Search Form

Documentation Sections ↑ Back to top

  • Setup – A general overview on configuring plugin options and settings.
  • Search Weights – Specific information about how search weights work.
  • Shortcodes – Shows you how you can show search fields anywhere in your content.
  • Widgets – This provides details on using search widgets in your sidebars.
  • Themes – (for developers) Here you can find specific information about theme integration.
  • API – (for developers) This section provides a brief example on how to use the plugin’s API in your theme templates.

Curious to see how it looks like in action? Here’s a short video:

find a product

Installation ↑ Back to top

  1. Download the .zip file from your WooCommerce account.
  2. Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
  3. Install Now and Activate the extension.

More information at: Install and Activate Plugins/Extensions.

Setup and Configuration ↑ Back to top

Note that the standard search fields and widgets are unaffected by this extension. Search facilities that it provides are meant to replace the standard facilities only where desired.

To begin setup:

  1. Go to: WooCommerce > Settings > Search.
  2. Tick the Use Weights checkbox. Enabling the use of weights will improve relevance in product search results.
  3. Enter preferences under Relevance. Enter a number based on how much you wish the search keyword to pull from Title, Excerpt, Content and Tags.
  4. Save changes.

Weights can also be set for specific products and product categories.

See Setup for detailed information about how weights are configured and Search Weights for details on their impact on search results.

Instant Search ↑ Back to top

Shortcode ↑ Back to top

An instant search facility is deployed by using this shortcode:
[woocommerce_product_search]
and placing it on a page

Widget ↑ Back to top

Instant search is also used via the widget that comes with WooCommerce Product Search.

 

Widget Settings

API ↑ Back to top

Theme developers can also use the plugin’s API to include in a template.

Refer to:

Customization ↑ Back to top

Note: This is a Developer level section. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our  Support Policy.

Use Product Search instead of the default search

You need to edit your theme’s searchform.php file, preferably using a child theme to preserve customizations against upgrades. More here: How to set up and use a child theme

From your parent theme’s searchform.php template file, copy it from the parent theme directory to your child theme directory and edit to conditionally output the WooCommerce Product Search (if it exists). The following snippet demonstrates one way that this might be accomplished, in this case placing it at the beginning of the searchform.php file:

If using Storefront or one of the Storefront child themes, there isn’t a searchform.php file.

Questions & Support ↑ Back to top

Have a question before you buy? Please fill out this pre-sales form.

Already purchased and need some assistance? Get in touch the developer via the Help Desk.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top