WooCommerce on sale filter will make it easier for customers to quickly find products that are on sale and add them to the shopping cart. Ultimately, you’ll end up having more sales.
So, In today’s article, I’ll show you how to create an on sale filter in WooCommerce with the help of WooCommerce Product Table Plugin. Here’s a sneak peek of the final results we’ll be achieving today.
On This Page
How to Create an On Sale Filter in WooCommerce?
Here I’ll show you how to create an on sale filter with the help of WooCommerce Product Table plugin. This plugin will also help you create product category filters, tag filters, and more.
So without further ado, let’s get started.
1. Install and Activate the WooCommerce Product Table Plugin
Note: You can skip this step if you have already installed and activated the WooCommerce Product Table plugin.
To install the WooCommerce Product Table plugin, you will need to install the Woosuite Core plugin and activate it with the help of a license key. We have created a Quick Start Guide for you to figure out how to install and activate the WooCommerce Product Table plugin.
2. Create a New Product Table
Once you have installed and activated the plugin, Now we need to create a product table. This will display all the products in a table/grid which will allow the users to view and add multiple products to the cart from a single page.
So to create a table, follow the following steps:
1. Add a New Table
Navigate to Woosuite » Product Table from your WordPress dashboard and click on the Add New Table button.
Once you click on it, you’ll see a screen from where you can create and control the table settings.
2. Order Form Display
Now give an internal name to the table. This name will only be used for admin purposes. It comes in handy to identify the tables if you have built several product tables.
3. Order Form Information
Now expand the Order Form Information section by clicking on the (▾)
Now, specify the columns you want to add to the table. To add a column just drag the column from the Available columns section and drop it in the selected columns sections.
3. Create an On Sale Filter
Once you have added the columns to the table, now to create an on sale filter expand the Order Form Controls section by clicking on the (▾)
Here you’ll see the Product Filters dropdown. In the dropdown you’ll get three options: ‘Disabled’, ‘Show based on columns in the table’, and ‘custom’.
1. Select the Custom Filters
Now from the Product Filters dropdown, select Custom to create a custom on sale filter.
2. Create an On Sale Filter
Once you select the custom filters from the dropdown, you’ll see the Custom Filters tab below.
On sale is a custom filter, so to create this filter, in the Custom Filter field, type “sale”. If you are creating multiple custom filters, you need to separate each filter with a comma.
3. Save the Changes
Once you have created the table and the filter, now click on the Save Changes button at the top right corner to save the changes.
4. Set Woosuite Product Table As Default Shop/Category Page Layout
To set the Woosuite product table as the default shop page layout, go back to the General Settings of the plugin by clicking on the back arrow at the top.
Now select the table you just created, from the Shop Pages and Product Category dropdown and click on the Save Changes button to save the changes.
5. Final Results
Now. Let’s test the filter.
To test it, visit the shop or any of the category pages on your store, and you’ll see that an on sale filter has been added.
Now, if you check the on sale filer box, only the products that are on sale will be displayed in the table.
Now you know how to create an on sale filter in WooCommerce. Now the users can filter the products that are on sale, which will make the buying experience better for them.
WooCommerce Product Table is one of the easiest plugin to create filters and display the products in a table. Now, it’s up to you to play with other settings of the plugin and create on sale or other filters.
If you have any queries, you can ask them in the comments or contact our customer support. Our dedicated customer support team typically replies within 48 hours.
To get started, download the WoCommerce Product Table plugin today!