WooCommerce Stock Status Filter for Products
A WooCommerce stock status filter helps shoppers find products that are In stock or Out of stock. In this electronics demo, choose a status and the product list updates to match it. The result count helps compare available and unavailable items.
Try this: Tick Out of stock to isolate products that cannot ship.
How this demo is configured
- Create a filter by Stock status (custom field _stock_status). Show as Checkboxes. Limit to the values In stock and Out of stock.
Showing 13–24 of 36 results
-
Sale
Add to cart
JBL Tune 770NC
Original price was: $129.00.$99.00Current price is: $99.00. -
Add to cart
Microsoft Surface Pro 11
$1,199.00 -
Add to cart
Lenovo Tab P12
$349.00 -
Sale
Add to cart
Sony WH-1000XM5
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Bose QuietComfort Ultra
$429.00 -
Add to cart
iPad Pro 13" (M4)
$1,299.00 -
Sale
Read more
Samsung Galaxy Tab S9
Original price was: $799.00.$649.00Current price is: $649.00. -
Add to cart
OnePlus 12
$799.00 -
Add to cart
Nothing Phone (2a)
$349.00 -
Add to cart
iPad Air 11" (M2)
$599.00 -
Add to cart
iPhone 15 Pro Max
$1,199.00 -
Sale
Read more
Samsung Galaxy S24
Original price was: $799.00.$699.00Current price is: $699.00.
How product stock status filtering works
The demo filter reads the WooCommerce _stock_status value and offers In stock and Out of stock choices. Selecting a value adds that status to the product query; selecting Out of stock returns products marked with that status.
The global Hide out of stock items setting is separate. When enabled, it can remove out-of-stock products from results even when a stock-status choice would otherwise match them.
When to show stock choices
Use a stock filter when shoppers need to choose availability states. They can focus on In stock products or review items WooCommerce marks Out of stock.
Configure stock status choices
- Go to Filter Sets → Add New and select Products under Content to filter.
- Add a filter row named Stock status with a unique URL keyword.
- Choose Custom field (text) under What are you filtering? and set Custom field key to
_stock_status. - Choose Checklist (multi-select). The plugin supplies stock-status choices; the demo narrows its list to
instockandoutofstock. - Review Hide out of stock items under Settings before publishing the set.