Book Image

WooCommerce Cookbook

By : Patrick Rauland
Book Image

WooCommerce Cookbook

By: Patrick Rauland

Overview of this book

Table of Contents (17 chapters)
WooCommerce Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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...