

The more research I do on the topic of out-of-stock products the more I see this question so I thought this was important to address. The only time you should hide (better yet delete) product is if you mistakenly make them because then there is no chance there is a link to that product from another site or your internal website. People who like that product typically like these products." This is easier than having to always redirect to a very similar product. On the top of the page you can write something like "that product is sold out. Whenever possible to redirect to a similar product orĬreate page that has many similar products. On that page they recommend redirecting to your home page or a similar product.
#Shopify hide out of stock products how to#
Here is a link to Shopify's instructions on how to do that. If the product is never going to be sold again there is no point in keeping the page but instead of hiding it, it is better to do a 301 redirect. This will create a 404 page which makes it so that person can no longer see what product was there. The product goes out of stock so you hide it. Think about it, imagine you have a popular product that someone wrote about and linked on their blog.

If you delete product pages a lot this can cause an issue for usability and in turn effect your SEO. They see how long people spend on your site and use that as a way to measure how good your site is. Google ranks your website on many factors and one of them is usability. The problem is, that is typically not true.

When you hide a product page what you are essentially saying is this page is no longer valuable.
#Shopify hide out of stock products code#
You can also improve the validation reading product properties such as price, stock, etc.Īre you ready to start hiding products? While this is a relatively simply customization, if you’re not comfortable working with code we’d be happy to help you implement this awesome feature.Every page on your site is valuable. You can apply the same implementation to other templates or create more product templates while using different customers tags. To hide more products, just change the product template and start tagging customers! Now, only customers who are tagged will be able to see the products that are intended for them. To open the hidden product, add the ws-access tag to the customer account, log in to the store and try to open the product. To test, preview the new theme and try to open the product without a customer session, this will redirect you to the collections page. NOTE : if the new template doesn’t appear in the templates list, you’ll need to create it in the current live theme without adding the code. In the product that you want to hide, change to the new product template and save the changes. You can change the /collections text to the URL of the page you want to redirect to when an unauthorized user tries to open a product that is intended for the specific customer group. This will create the file.Īt the end of the file, close with the following code and save it. In your newly created copy of the theme, click Actions and then Edit Code.Īdd a new product template called hidden. Wait for the created theme to finish loading. In Themes, click Actions and select Duplicate. IMPORTANT: Before continuing, we recommend creating a copy of the theme and working using the copy.Ĭreate a copy of the theme in the Online Store section. We used the Debut theme for this example, but this method can be used in other Shopify themes as well. You can hide products using whatever criteria you want, like geographical location, age, etc. Using the following code, this becomes possible! You want to reward them for their loyalty by making a product available exclusively to them. You have a group of customers who have subscribed to regular purchases of your product. Let’s take a look at the following scenario. But what about hiding a specific product from a specific group of customers? If a product is sold out, or you want to hide it from your entire customer base for whatever reason, that’s easy to do on Shopify.

There comes a time in every Shopify store’s journey when you need to hide products from your customers.
