> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/miscellaneous/woocommerce/showing-in-stock-and-backorder-products-only.md).

# Showing in-stock and backorder products only

Excluding out of stock, but including instock and onbackorder products

![](https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M9rmHbZfTKVQ7YzbIZL%2Fuploads%2FM9nBbhH5jgFjnK04ev8e%2Fimage.png?alt=media\&token=8b7bd754-8413-4d63-8b2a-a7743c573494)

* Open up the **Frontend search settings -> Custom fields** panel
* Click to create a **New filter**
* For the filter name you can choose anything, we typed "Stock"
* For the field name choose **\_*****stock\_status***
* For the field type choose **Hidden**
* For the field value enter: `instock::onbackorder`
* For the field operator choose **EXACTLY LIKE**
* Save the field and the search settings
