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.
Filters
Stock status
Stock status

Showing 1–12 of 36 results

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

  1. Go to Filter Sets → Add New and select Products under Content to filter.
  2. Add a filter row named Stock status with a unique URL keyword.
  3. Choose Custom field (text) under What are you filtering? and set Custom field key to _stock_status.
  4. Choose Checklist (multi-select). The plugin supplies stock-status choices; the demo narrows its list to instock and outofstock.
  5. Review Hide out of stock items under Settings before publishing the set.

Frequently asked questions

Does Out of stock mean a product cannot be ordered?

The filter matches the stored stock status. Whether an item can be ordered also depends on store inventory and backorder settings.

Does the filter update inventory?

No. It filters products by their stored status; WooCommerce inventory data stays unchanged.