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 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.
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.