Changing criteria for Sold Out label

Nittiyarns
Tourist
28 0 2

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

Replies 3 (3)

LitExtension
Shopify Partner
4860 1001 1135

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)

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
Nittiyarns
Tourist
28 0 2
Thanks for your reply! I’m a bit of a newbie with this, where and which
snippet do I put this into?

Cheers

LuckyNigam
Pathfinder
142 8 14

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