WooCommerce On-Sale Product Filter
A WooCommerce on-sale product filter helps shoppers find products WooCommerce currently identifies as on sale. In this electronics demo, select On sale to narrow the list to sale items. Pair it with Price Range when shoppers also need a budget.
Try this: Tick On sale to show only discounted electronics.
How this demo is configured
- Create a filter by On sale (custom field _sale_price, shown when present). Show as Checkboxes.
Showing 25–36 of 36 results
-
Add to cart
Samsung Galaxy S24 Ultra
$1,299.00 -
Sale
Add to cart
Google Pixel 8
Original price was: $699.00.$549.00Current price is: $549.00. -
Add to cart
Google Pixel 8a
$499.00 -
Add to cart
Microsoft Surface Laptop 7 (13.8")
$1,199.00 -
Add to cart
HP Spectre x360 14
$1,449.00 -
Sale
Read more
Acer Swift Go 14
Original price was: $849.00.$699.00Current price is: $699.00. -
Add to cart
iPhone 15
$799.00 -
Add to cart
MacBook Pro 14" (M3 Pro)
$1,999.00 -
Sale
Add to cart
Dell XPS 13 (9340)
Original price was: $1,199.00.$1,049.00Current price is: $1,049.00. -
Add to cart
Lenovo ThinkPad X1 Carbon Gen 12
$1,649.00 -
Sale
Add to cart
ASUS ROG Zephyrus G14 (2024)
Original price was: $1,599.00.$1,399.00Current price is: $1,399.00. -
Sale
Add to cart
MacBook Air 13" (M3)
Original price was: $1,099.00.$999.00Current price is: $999.00.
What the On sale filter checks
The demo uses an existence-style filter for the sale field and delegates matching to WooCommerce sale-product IDs. When selected, it narrows the result set to the products WooCommerce reports as on sale.
That is different from checking whether a shopper-entered maximum is below a regular price. A sale filter uses sale status; a price range uses numeric prices.
When to add an on-sale facet
Use this option when shoppers ask to see sale products without setting a specific price band. It can sit alongside category, brand, price, or rating choices in a product Filter Set.
Keep product sale prices and dates current so WooCommerce lists the right items as on sale.
Add an On sale product filter
- Open Filter Sets → Add New and choose Products for Content to filter.
- Under Filters, use the On sale quick template if available, or add a row with a shopper-facing label and unique URL keyword.
- For a manual row, choose Custom field exists for What are you filtering? and set Custom field key to
_sale_price. - Set How shoppers choose to Checklist (multi-select), save the set, and test the On sale option on a product archive.