# Hide out-of-stock products from your collections

## How to hide out-of-stock products from your collections? <a href="#how-to-hide-out-of-stock-products-from-your-collections" id="how-to-hide-out-of-stock-products-from-your-collections"></a>

To hide out-of-stock products from your collections, you first need to ensure that **inventory tracking** is **enabled** in your Shopify admin. This allows Shopify to automatically monitor the inventory levels of your products.

<figure><img src="/files/tG9nwjWgwodO4R71vI16" alt=""><figcaption></figcaption></figure>

By hiding products that are out of stock, your collections will remain relevant and clutter-free for customers. These unavailable items will automatically reappear once inventory is replenished.

## Steps to hide out-of-stock products <a href="#steps-to-hide-out-of-stock-products" id="steps-to-hide-out-of-stock-products"></a>

{% stepper %}
{% step %}

### Enable inventory tracking

Start by activating **inventory tracking** for each of your products.

{% hint style="success" %}
See how to set up [**Inventory Tracking**](https://help.shopify.com/en/manual/products/inventory/getting-started-with-inventory/set-up-inventory-tracking) here.
{% endhint %}
{% endstep %}

{% step %}

### Set smart collection conditions

For each smart collection, update the conditions as follows:

* Set **Products must match** to **all conditions**.
* For **Inventory stock**, choose **is greater than** and enter **0**.

{% hint style="info" %}
**Note:** This method only works if you set **Products must match** to **all conditions**. If it’s set to match **any condition**, out-of-stock products may still appear.
{% endhint %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/hyper-theme/faqs/hide-out-of-stock-products-from-your-collections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
