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.
Filters
On sale
On sale

Showing 25–36 of 36 results

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

  1. Open Filter Sets → Add New and choose Products for Content to filter.
  2. Under Filters, use the On sale quick template if available, or add a row with a shopper-facing label and unique URL keyword.
  3. For a manual row, choose Custom field exists for What are you filtering? and set Custom field key to _sale_price.
  4. Set How shoppers choose to Checklist (multi-select), save the set, and test the On sale option on a product archive.

Frequently asked questions

Does this filter calculate the discount amount?

No. It selects sale-status products; use Price Range to set a spending limit.

What happens when a sale period ends?

WooCommerce no longer lists the product as on sale after its sale data expires.