When a product gets sold out on your website, you can automatically have it removed. Instead of doing this manually for each product, you can set up an automated collection to handle this process for you.

Here’s how you hide out-of-stock products from your Shopify store:

Step #1: Navigate to the “Collections” section of your “Products” menu.

Step #2: Choose the collection you want to automate.

Step #3: Edit the conditions so that the “Inventory Stock” is “Greater Than” the number “0.”

These parameters make it so that your automated collection won’t contain any products that have an inventory of zero. So by default, your out-of-stock products will be hidden automatically.

Note: This only works if you have inventory tracking enabled.