Indicate when products are out of stock on your store


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

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

To do this:

  1. From your Shopify admin, click Products (or press G P P):


  2. Click on the product name to open up the product information page.

  3. Scroll down to Inventory & variants.

  4. Click on the edit link next to the variant.

    Edit variant 1
  5. In the new window, locate the Inventory policy.

  6. The button that reads "Allow users to purchase this item, even if it is no longer in stock." must be ticked, like so:

    Allow users to purchase
  7. Save your changes.

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

  1. From your Shopify admin, click Online Store, and then click Themes (or press G W T).

  2. Find the theme you want to edit, click the ... button, and then click Edit HTML/CSS.

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

  4. 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 %}
  5. Save your changes.

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free