Hiding out of stock products

You can use automated collections to hide out-of-stock products from your customers. You can do this manually on the Collections page of your Shopify admin, or use an inventory management app to do it for you.

You might also want to hide products in your store's default Catalog collection.

Hide out-of-stock products from your collections

Before you can hide out-of-stock products from your collections, you need to enable inventory tracking in your Shopify admin. Inventory tracking automatically keeps track of the inventory level of each product that you carry.

To hide out-of-stock products from your collections:

  1. Enable inventory tracking for your products.

  2. Change the automated collection conditions for each of your collections, and add the following conditions:

    • For Products must match, select all conditions.
    • For Inventory stock, select is greater than and 0.

All conditions

This will make sure that your automated collections don't contain any products that are out of stock, and that those products won't appear to your customers. Any out-of-stock products will appear in your collections again after you've received inventory.


This solution for hiding out-of-stock products won't work if you set Products must match to any condition.

Hide products in your default Catalog collection

By default, your store comes with a collection that shows all your in stock products at the URL your-store.myshopify.com/collections/all. To hide out-of-stock products from this collection:

  1. Take control of your Catalog page by overriding it with your own automated collection.
  2. Set the automated conditions of that collection to hide out-of-stock products.

Cart hold policy

A hold is placed on items during payment processing in checkout. If the items in the cart are in stock, then a hold is placed on those items until the payment processing is complete. If an item is out of stock, then the customer will be directed to the out-of-stock page.


If a payment fails, then the hold is released until the customer reaches the payment stage again.

Delayed shipping

Before you begin, make sure that products can still be added to the cart when their inventory reaches 0.


The solution provided will only work for products with one variant.

To do this:

  1. From your Shopify admin, go to Products.

  2. Click the product name to open the product information page. For a variant, click Edit beside its name.

  3. In the Inventory section, check Allow users to purchase this item when it's out of stock:

  4. Click Save.

To show a special message about shipping, you can edit your product.liquid template:

  1. Find the theme you want to edit, and then click Actions > Edit code.

  2. Under the Templates folder, locate and click product.liquid to open it in the online code editor.

  3. Find this code:

    {{ product.description }}

    Add the code provided below on the next line:

    {% assign variant = product.variants.first %}
    {% if variant.inventory_quantity <= 0 and variant.available and variant.inventory_management != '' %}
    <p style="color:#ff0000">This item is currently out of stock. It will take up to 3 weeks to ship.</p>
    {% endif %}
  4. Save your changes.

Use an inventory management app

If you don't want to change your automated collections so that out-of-stock products are hidden, then you can try using an inventory management app from the Shopify App Store instead. These apps can automatically hide or delete products from your store when they're out of stock.

Shopify is unable to send you an email when one of your products is low or out of stock, but there are some great apps available in the Shopify App Store that do this for you.

Tracking inventory across multiple stores

You can sell nearly any product on any Shopify store at any time. If you have a limited inventory, you can use an inventory app from the Shopify App Store to link your inventories together.

If you want to sell products from your Shopify store on another website, Shopify can directly integrate with:

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free