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 1–12 of 36 results
-
Add to cart
Dell UltraSharp U2723QE
$579.00 -
Sale
Add to cart
LG UltraFine 27UP85
Original price was: $449.00.$379.00Current price is: $379.00. -
Add to cart
Samsung Odyssey G7 28"
$699.00 -
Read more
ASUS ProArt PA279CRV
$469.00 -
Read more
Apple Watch Series 9 (45mm)
$429.00 -
Add to cart
Apple Watch Ultra 2
$799.00 -
Sale
Add to cart
Samsung Galaxy Watch 6 Classic
Original price was: $399.00.$329.00Current price is: $329.00. -
Add to cart
Garmin Forerunner 265
$449.00 -
Add to cart
Google Pixel Watch 2
$349.00 -
Sale
Read more
Apple AirPods Pro (2nd gen)
Original price was: $249.00.$199.00Current price is: $199.00. -
Add to cart
Sennheiser Momentum 4
$349.00 -
Add to cart
Sony WF-1000XM5
$299.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.