Filter Product by Search in WooCommerce

Filters By
Updated Nov 7, 20263 min read

The search filter adds a search box to your filter panel. Shoppers type a word, such as “lamp”, press Enter or click the button, and the products update without a page reload. It works together with your other filters.

You can try the search filter on the live demo.

WooCommerce product search box in the filter panel

In Product Filters > Form Manage, set Show Search to On.

Show Search switch that turns on the WooCommerce product search filter

Step 2: Open its settings

On Form Style, choose Search Product under Configure Style for.

Search Product selected in the Configure Style for list

Step 3: Choose the style

  • Search with Button: a box with a button. Set the button’s word with Button Text.
  • Search with Icon: a box with a small magnifying glass, which takes less room.

Step 4: Decide how the search behaves

SettingWhat it doesShould I use it?
PlaceholderThe hint inside the empty boxYes. “Search lamps, chairs…” tells shoppers what to type.
Enable/Disable Auto Suggestion PROSuggests products while the shopper typesYes, if you have it.
Search In PROChooses what is searched: Title, Content, Excerpt, SKU, Tags, Categories, Attributes, Authors and BrandsTitle and SKU suit most shops. Adding Content can bring unrelated results.
Enable/Disable Full MatchFinds a product only when the whole field matches what was typedUsually no. With it on, “shirt” will not find “Blue Cotton Shirt”.

When a shopper types several words, a product must match all of them. Fewer words find more products.

The heading and tooltip work as described in the category filter settings table. Click Save Changes when you finish.

Step 5: Show it on your store

Filters on your shop page update by themselves. For another page, paste the shortcode below or read our guide to adding filters to your store.

[plugincy_filters]

Tips for a search box shoppers will use

  • Put it at the top of your filters, where people expect to find it. Our guide to reordering filters is part of managing your filters.
  • Write product titles the way shoppers talk. “Wireless Gaming Mouse” is easier to find than a model number alone.
  • Try it yourself. Search for three things a customer might ask for, and check what comes up.

Search also works with your other filters. A shopper can search “shirt” and then tick “Blue” to narrow the results further.

If something looks wrong

  • No results for a word you know is there: turn off Full Match, and check Search In if you have Pro.
  • Nothing happens while typing: shoppers need to press Enter or click the button.
  • Results look too broad: remove Content from Search In.