How can I hide sold-out products without hurting SEO?

Hello, I’m trying to figure out is it possible to “hide” sold-out products(not collections)? I don’t want them to be in “draft” or something like that - cause that hurts SEO badly and I don’t want them to be visible on the front page, but they should still be accessible in google search results.

Hi @Egle ,

The easiest way to hide out of stock products from your storefront is to change the product’s availability, however doing this will mean the product cannot be viewed on your storefront and will not be accessible via Google search results. It sounds like you are looking for something of a half-measure; making the product difficult to find, but still active and reachable via search engines.

I think the best way for you to proceed would be to remove the products in question from any of your collections that feature on the storefront. If you’re using automated collections, you can set a condition that products in the collection have a minimum inventory quantity of 1, so if a product’s inventory drops to 0 or below then it will no longer feature in any of your collections. It will still be visible on the storefront but will only be viewable by customers if they search for it directly on the store, have a direct link to the product, or find it in Google or another search engine. Once the product is back in stock it will meet the condition of having an inventory value of at least 1, and will be automatically added back to the collection if it meets any other criteria you have set for it.

I hope this explains things but please let me know if you have further questions.

Hello, thank you for the suggestion. Could you please explain to me how to set automatic collection and those conditions that once product stock is below 1, it goes off and backward?

Hi @Egle

would you mind checking our app Nada: Sort & Hide Out Of Stock?

The app is automatically hiding sold-out products and sets a redirect to the homepage or any other page. Once the product is back in stock, it’s published again and the redirect is removed. Like this, you are not being penalized on SEO as the visitors never get to the 404 page.

Try it for free for 7 days and check if it helps to solve your problem.

Hi @Egle ,

Yes, absolutely. When you create an automated collection, you’ll be able to set specific conditions that dictate which products appear in them. You can set multiple conditions for each collection you set up, and products can appear in more than one collection at once.

As an example, let’s say that I am an apparel store that sells a variety of clothing products, including t-shirts. Like you, I may want to hide out-of-stock products from my collections without removing them from the website entirely, and want them to re-appear in my collections when they are back in stock. I can use a condition to sort my products into the collections—in this example, I’ll have all products with the product type “T-shirt” appear in the collection—and make it so that only products with an inventory of 1 or above will be included:

By making it so that products must meet all conditions in order to appear, I do not have to remove the product type from the product to hide it, as its inventory dropping to zero means it will no longer meet all conditions. Once I restock the product its inventory will be at 1 or above again, and it’ll re-appear in the collection and be viewable by customers in the collection on the storefront again.

You can read more about setting conditions for automated collections here, but please also feel free to ask me any questions if you have them here.

I urge you to try our new application “Stock In Motion” that will allow you to sell your inventory when it is on the way to your warehouse. This application automates the entire pre-sale process including the management of all inventory levels. You can find it here:

https://apps.shopify.com/stock-in-motion