Fix 14 of 60 · Inventory & reorders

How do I hide sold-out products on Shopify without deleting them?

Sold-out products clutter your collections and send shoppers to pages they cannot buy from. Deleting them throws away the page, the reviews and the history. Shopify gives you two better options, and which one is right depends on what you want the product page to do.

Published Updated By Kishore, Axioprax5 min read
A product list where a sold-out jacket is hidden from collections, a sold-out scarf is unpublished by Flow, and a restocked hat is published again automatically.

Why not just delete sold-out products?

Deleting a product removes its page, its reviews, its sales history and any link pointing to it. When the stock comes back, you rebuild it from scratch. Leaving it visible is not great either: shoppers scroll past items they cannot buy, and some of them leave.

Shopify has two free in-between options. An automated collection can quietly drop products at zero stock and add them back on restock, while the product page itself stays live. Or Shopify Flow can unpublish the product from the online store at zero and publish it again when stock returns. Both undo themselves, so nobody has to remember.

How do I know I need this?

  • Your collection pages open with a row of Sold out badges.
  • Someone on your team hides and unhides products by hand after each delivery.
  • You have deleted products in the past and later recreated them.

Before you choose, ask one question: do people still land on these product pages from Google, ads or emails? Your answer decides which option fits.

How do I fix it? (step by step)

Work through it with your Shopify admin open, and tick each step as you go.

0 of 6 done

  1. Make sure inventory is tracked.

    Both methods only work for products with Track quantity on. Check this in Products > Inventory with the bulk editor before you start.

  2. Option A: add the stock condition to each collection.

    Open each automated collection, change the collection conditions to add Inventory stock is greater than 0, and set products to match all conditions. Save.

  3. Replace the default Catalog page if you use it.

    The built-in collection at /collections/all shows every product. Override it with your own automated collection that has the same stock condition.

  4. Option B: install the Flow template.

    Open the free Shopify Flow app, search the templates for Publish and unpublish products based on inventory level, and install it. Staff accounts, unlike the store owner, also need Shopify's Flow automations permission, set in Settings > Users > Roles.

  5. Set which channels it hides from.

    In the Unpublish product and Publish product actions, choose the publications, usually your Online Store, then turn the workflow on.

  6. Test both directions.

    Set a test product to 0 and check it disappears, then set it back to 1 or more and check it returns. Shopify's own test advice for the out of stock trigger is to change a variant from above 0 to 0.

Flow from left to right: a variant sells out, then either the automated collection condition drops it from collections while the page stays live, or Shopify Flow unpublishes it from the online store, and when stock returns it reappears automatically.
Collections hide it softly. Flow hides it completely. Both bring it back on restock.

What is the difference for my product page?

With the collection condition, the product is only missing from collections. Its own page still works, so a shopper arriving from search can read about it, and you can offer a back in stock email there. With Flow, the Unpublish product action makes the product unavailable on the sales channels you choose. That is cleaner for browsing, but anyone following an old link reaches a page that is no longer available until the product is published again.

When is this not the right fix?

If a product is discontinued for good, hiding it is just a slower delete. Decide whether to keep the page for search or archive it. If your stock numbers are not reliable, these methods will hide products you actually have, so fix tracking first. And if you use manual collections, the stock condition is not available there, so Flow is your only automatic option.

What does it cost?

Nothing. Automated collections are built into Shopify, and Shopify Flow is a free app on the Basic, Grow, Advanced and Plus plans. Setup takes about half an hour, most of it opening each collection.

Want this set up for you?

We set this up and test it on your collections for free as part of the Founding 10, where we fix one Shopify problem for ten stores. If you used Stocky to manage reorders, see the Stocky Replacement kit.

Do it yourself, or have it done?

Yourself, free

Follow the steps above. Everything on this page is free, with no email needed.

Hide sold-out products checklist (PDF, 1 page)How to choose between the two methods, the exact settings for each and the restock test.

Done for you

We set it up in your store through a collaborator account, and tell you what it takes before you pay anything.

Frequently asked questions

Which option should I choose?

Use the collection condition if sold-out products get traffic from Google, ads or emails, because the product page stays live. Use the Flow template if you want the product gone from the online store until it is back in stock.

Why is a sold-out product still showing in my collection?

Check two things. Shopify says the condition does not work if the collection is set to match any condition, and products need inventory tracking turned on.

When does the Flow template bring a product back?

Shopify describes the template as republishing products once they have at least one variant with inventory. The back in stock trigger fires when a variant goes from 0 or less to 1 or more.

Will this hide my pre-order products?

It can, if they sit at 0 stock. Exclude them with a tag in your Flow condition, or keep pre-orders in a manual collection without the stock condition.

Get the week's fixes by email

One email a week with the new fixes and their checklists. No sales emails. Unsubscribe any time.

Got a store problem we haven't fixed yet? Send it to us and it may become a future fix.

All fixes