Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We have a site we are managing that has a good amount of redirects for time products sold out or discontinues. Some of the products are custom on-of-a-kind-pieces, so they won't be coming back. But my question is in regard to the ones that are coming back. For example, lets say I have a product here:
https://store.com/collections/products/product-one
we run out of Product-One, so we create a redirect for the URL to go to the collection page.
What is going to happen when we bring Product-One back and want to use the above URL that has a Redirect in place? Will adding the page back in void the redirect?
What is the best(common) practice for managing these issues?
Thank you in advance!
Hi @ccgnh,
You can add conditions to make redirects. Refer:
{%- if product.available -%}
<!-- show content -->
{%- else -%}
<!-- action redirects -->
{% endif %}
Hope it helps!
Thank you! Sorry for the rookie question, but where would I add that condition?
Hi @ccgnh,
Please send your site and if your site is password protected, please send me the password. I will check it.
Hi @ccgnh,
What code are you using to redirect collection? Please send me the redirect code and the code of the product.liquid file, I will help you check and add conditions to it
I am doing it within the CMS through SEO Manager.
Hi @ccgnh,
If so, you need to contact CMS directly, they will help you check it.
Because no one will be able to edit this for you, if you edit with code, it won't work like CMS.
Hope it is clear to you.
@ccgnh Another good solution, aside from redirecting, would be to convert the visitors landing on out of stock product pages into future customers. Since you have products that will be coming back, you can use an app for back in stock alerts - like Stoq - and add a "Notify me when available" button to it.
When you restock the product, customers automatically get notified to buy it. And just like that, you'll see sales come in. Most back in stock alerts apps are super easy to set up and require less than a few clicks to set up. Not only that, you can also get -
1. Insights on products in demand
2. Advanced features to help you notify customers efficiently
3. Use newer ecommerce industry trends like preorders to lock in sales even before you restock the product.
From my 2 years of running our preorders and back in stock alerts app - Stoq - I think you shouldn't miss out on the opportunity. We've seen time and time again that back in stock alerts are one of the highest converting notifications, and many large merchants invest a ton of time in getting it right! 🙂
Founder & CEO, Artos Software
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025