How can I change the 'Sold Out' label to 'Coming Soon' based on product tags?

Hello!

I was wondering if someone would be able to help me. I want “Sold Out” to be replaced by “Coming Soon” if the product has the “Coming Soon” Tag, otherwise just be the standard sold out.

Currently I’ve changed the language of my theme “Avone Theme”, to read Coming Soon for anything with 0 stock, but it’s not quite right when I can’t get stock of something at the moment.

Is this possible to do? My store is www.nitti.co.nz

Hi @Nittiyarns ,

You can try change your snippet to:

{% for tag in product.tags %}

{% if tag contains ‘your_tab’ %}

{% assign has_coming_soon = true %}

{% endif %}

{% endfor %}

{% unless has_coming_soon == true %}

<–Set your code at here →

{% endunless %}

Remember: You need to change “your_tab” with the tag of that product contains the Coming Soon tag.

Hope this helps. If you can not do that, you can add me as a staff, I’ll check it for you (my email: tuanthinhit@gmail.com)

Thanks for your reply! I’m a bit of a newbie with this, where and which
snippet do I put this into?

Cheers

Hi @Nittiyarns

This is not only done by the shopify code . Its also depend on your javascript code when you change the variants. So we need your file access to do that part you can also contact me on skype( cid.6072cc42f2bf365c ).

Thanks