Digismoothie brand logo
How to Hide Sold Out Products & Variants on Shopify

Tomas Janu

|

September 6, 2021

How to Hide Sold Out Products & Variants on Shopify

One of the essential things to run a successful online business is managing inventory. You need to forecast to make sure your most popular products are always in stock. But what about those which are sold less often and sometimes become out of stock?

How to Hide Sold Out Products & Variants on Shopify

One of the essential things to run a successful online business is managing inventory. You need to forecast to make sure your most popular products are always in stock. But what about those which are sold less often and sometimes become out of stock?

You definitely don't want to display sold-out products at the top of your collections, and neither drive any campaign traffic to their product pages.

Having a sold out product in your store doesn't bring much revenue

The best way to handle sold-out inventory is to either hide it entirely or at least push it to the bottom of your collections. This guide will explore the first approach and learn how to hide products and their variants.

Option #1 – Unpublish product from the sales channel(s)

Probably the easiest way to hide the product from your Shopify store is by unpublishing from a particular sales channel. In the case of an online store, the default channel name is Online Store (surprisingly).

Removing product from an Online Store sales channel

To unpublish the product from the sales channel, follow these steps:

  • Go to your product catalog and open details of a particular product
  • In the top-right corner, click on Manage in the SALES CHANNELS AND APPS section
  • Uncheck the desired channel, click Done, and Save
  • And the product is hidden, and no one can purchase it anymore

Besides hiding the product from the storefront, it will also be hidden from a site search.

However, you need to keep in mind the disadvantages which are: 

  1. Returning 404 error on the product page (Google doesn't like that at all!). It can be resolved via custom redirects
  2. It can be time-consuming in the case of dozens of products that you need to unpublish and republish again. Product import & export can save a lot of time

Option #2 – Set product status to draft

It is similar to option #1 with the difference that once the product is set to draft, it's not visible and is not purchasable at all channels. Disadvantages are the same.

Changing product status from active to draft

To set the product status to draft, follow these steps:

  1. Go to your product catalog and open details of a particular product
  2. In the top-right corner, in the Product status section, click on Active drop-down and change it to Draft
  3. Click on Save, and the product is hidden everywhere

Option #3 – Set automatic collection rules

If you are using automatic collections, you can add a condition to display only products that are in stock. The significant advantages compared to the previous two methods are:

  • No 404 errors (product pages are still accessible through direct links)
  • No manual work, everything is automatic, and the product will become visible once it's available again
Setting inventory stock condition in Shopify

To set the inventory stock condition follow these steps:

  1. Go to your Shopify store admin > Products > Collections
  2. Select a particular collection, and in the section Conditions click on Add another condition. If you don't see Conditions section that means the collection is not automatic, but manual
  3. From the drop-down select Inventory stock + is greater than + 0
  4. Click on Save and that's all. The product will no longer be visible in your collection pages (i.e. yourstore.com/collections)

The disadvantage is that it doesn't work with manual collections, and it doesn't apply to site search.

Option #4 – Use a third-party app

Several third-party apps can help you with managing your store inventory. Our recommendation is an app called Nada: Sort & Hide Out-of-Stock.

Automatic hiding of sold out products in Nada app

Nada: Sort & Hide Out-of-Stock automatically hides sold-out products by unpublishing them from the Online Store sales channel. But it also automatically puts them back online when they are available. On top of that, it creates redirects, so there are no 404 errors. So it essentially removes the disadvantages from option #1 and #2.

The app starts at $9.99 per month, and you can take advantage of a 7-day free trial.

Other apps to try:

Bonus – Hiding sold-out variants only

The challenge is how to hide only a particular variant on the product page – not a whole product. Unfortunately, all options above work only when the "whole" product is sold out (i.e., all its variants).

It doesn't work if you want to hide a particular variant from a selector on your product page. Shopify platform doesn't allow a product variant to be unpublished or set to draft.

Example of a sold out variant on the product page

The solution is a bit trickier and requires some custom coding to your Shopify theme. You need to modify the code not to display the variant in the selector if it's out-of-stock.

If you are using any of these themes – Boundless, Brooklyn, Debut, Express, Minimal, Narrative, Simple, Supply, or Venture, go to the official Shopify guide Hide sold-out variants. Keep in mind the guide is relevant only for hiding a particular product variant(s), not the product itself.

Latest articles

All articles

LET’S GET STARTED

Let’s kickstart your Shopify business together

All our stores are beautifully designed (#eyecandy). More importantly, though, they’re optimized to sell. Customer love, guaranteed. Just don't tell the competition.

Get in touch