Redirect for out of stock, but what about when the product comes back in stock?

Redirect for out of stock, but what about when the product comes back in stock?

ccgnh
New Member
5 0 0

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!

 

Replies 8 (8)

LitExtension
Shopify Partner
4963 1010 1192

Hi @ccgnh,

You can add conditions to make redirects. Refer:

{%- if product.available -%}
<!-- show content -->
{%- else -%}
<!-- action redirects -->
{% endif %}

Hope it helps!

 

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
ccgnh
New Member
5 0 0

Thank you! Sorry for the rookie question, but where would I add that condition?

LitExtension
Shopify Partner
4963 1010 1192

Hi @ccgnh,

Please send your site and if your site is password protected, please send me the password. I will check it.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
ccgnh
New Member
5 0 0

Of course! Thank you!

https://andrewpearcebowls.com/

 

LitExtension
Shopify Partner
4963 1010 1192

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

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com
ccgnh
New Member
5 0 0

I am doing it within the CMS through SEO Manager.Screen Shot 2022-06-16 at 6.42.50 AM.png

LitExtension
Shopify Partner
4963 1010 1192

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.

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Contact us:
- Email: contact@litextension.com

Sandy--STOQ
Shopify Partner
110 5 14

@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! 🙂

STOQ: Preorders & Back in stock alerts made easy for Shopify
Filemonk: Sell digital products & downloads in 3 quick steps

Founder & CEO, Artos Software