Get more organic search traffic for your Shopify store
JSON-LD for SEO is a premium app that has been designed and optimized to get you results in Google, fast.
Looking for a quick an easy solution to hide out of stock products?
Never fear! Shopify can track your inventory, creating a simple solution without having to install an app.
To do this, select a product you want to track. Scroll down to the Inventory section and under the Inventory Policy, select Shopify tracks this products inventory.
Similar process for variants except you have to edit the variants individually before you can see the inventory box.
Don’t forget to click Save.
You should also decide if customers can purchase the product when it’s out of stock. But I’m guessing since you’re here asking how to hide out-of-stock products, that’s not what you want to do. So make sure this is not checked.
When a product is sold out, Shopify will increase the opacity of the image just a bit. In other words, increase the transparency so the image doesn’t stand out as much. The product is still listed but now it has Sold Out instead of the pricing.
When you want to hide the product, it’s a bit more complicated. But you can set up a condition for collections that automatically hides the out of stock product.
Click on a collection you want to set a condition for. You’ll see a section called Conditions.
It’s possible that you already have conditions in here especially if your collection is curated based on product tag, product vendor, or product type which are common ways to group collections.
Select the Add another condition button and a new dropdown will appear in the list of conditions. You’ll want to use Inventory stock is greater than 0. This means that only products that have an inventory will appear in the collection.
When you receive new inventory, the product will automatically be added back into the collection.
Let’s say you have 7 variants of a given product. Six variants are in-stock but one is out of stock. The good news is that the product will still be shown in the collection, allowing shoppers to see and purchase what is in stock. It makes sense because at least one of the variants matches the condition we set above.
Of course if you want something more robust that doesn’t require you to manually update each collection, apps are a great option.