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 extra sorting options on the Shop page


When you're on the WooCommerce shop page or on any of the category pages, there are five ways to sort your products: popularity, average rating, newness, price low to high, and price high to low. That's a pretty good range of ways to sort your products. Of course, it doesn't cover every possibility. You may want to have your products randomly sorted, sorted by products on sale, or sorted alphabetically.

As is typically the case with WordPress, someone has already thought of all of these and bundled them into a free plugin.

How to do it…

This is a pretty quick process. First, we'll have to install the plugin.

  1. In the WordPress admin, click on the Plugins menu and then on Add New.

  2. Run a search for WooCommerce Extra Product Sorting Options.

  3. Install and activate the plugin.

    Now that we've installed the plugin, we have to configure a few settings.

  4. From the WordPress admin, go to WooCommerce | Settings | Products | Display.

  5. The plugin gives you the ability to...