A client recently wanted to customize the WooCommerce product Sorting order of their WooCommerce WordPress plugin products on the product category archive page. The archive used the default alphabetical sorting, but they had a few products they wanted to list at the top of the category listing. Here’s how we did it.
WooCommerce Product Sorting Options
WooCommerce offers the ability to customize the sorting order of products with a few settings changes.
Go to WooCommerce > Settings in your WordPress admin. Under the Products tab, ensure that Default Product Sorting is set to “Default sorting (custom ordering + name)” under the Display settings. Save the environment, then click on the Products admin page from the WordPress admin sidebar.
Custom WooCommerce Product Sorting
All custom sorting is against all items and not against separate categories. Keep this in mind if you have a page that displays all products. For this particular project, the product pages were separated by type, so the sorting options didn’t need to be as detailed as others may need.
From the Products admin panel, you can select Sort Products and then drag and drop your products in the specific order that you’d like. You can also order the products in the Quick Edit menu by changing the “Order” value. All items default to the value zero. The custom order displays the lower numbers first. You can also edit the order value in the Product Data > Advanced tab on the product edit page. As a result, you’ll be able to edit the WooCommerce products sorting.
Move Specific Products to the Top
If you want to custom-sort every product, you may do so. If you simply want to move a few select items to the top of the list, there is an easy way to do that.
Enter a negative number in the “Order” field of the product. The item will have a lower value than the default by using a negative number. “0” and therefore will show above those items. Suppose you want to lump a group of products together. In addition, have WooCommerce sort them alphabetically; just use the same “order” value.
WooCommerce includes several options in the core plugin for sorting your products on the Shop page. However, most people don’t realize there’s an option for WooCommerce custom product sorting. By default, you’re given 6 opportunities:
- Default Sorting (custom + name)
- Popularity (sales)
- Average rating
- Most recent
- Sort by Price (ascending)
- Sort by Price (descending)
We will focus on the first option for setting up a customized order. If you go to Appearance > Customize in your WordPress admin, you can change some of your display settings.
WooCommerce Product Sorting Conclusion
WooCommerce is a powerful e-commerce solution for WordPress and provides lots of ways to customize your online store.
All Visualmodo WordPress theme is fully compatible with the WooCommerce plugin and also add special unique features to add more power and beauty to your shop design.