Adding a Product Search widget

There are a number of tools built into WooCommerce that people don't even know about. One of those tools is the Product Search widget. It works in a very similar way to the default search widget in WordPress, except that this one only searches for products. It won't show any results for your pages, posts, or other custom post types.

Additionally, the results it does show are displayed as they would appear on the shop page. This will usually look better than the standard search page. If you have a site that's primarily an e-commerce site, I recommend using the Product Search widget so your users can find what they want a little faster.

How to do it…

To add a product search widget, let's have a look at the following steps:

  1. Go to Appearance | Widgets.
  2. Under Available Widgets, click on WooCommerce Product Search and then add it to the appropriate sidebar.
  3. You may optionally add a Title to the widget.
  4. Click on Save.

There's more...

The default Product Search widget that comes with WooCommerce is already very useful. If you want to have instant search results as you type or if you want to control the search algorithm, there is the WooCommerce Product Search extension available at http://www.woothemes.com/products/woocommerce-product-search/.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset