Re: Change 'Sold Out' to 'Coming Soon' only for specific products

Change 'Sold Out' to 'Coming Soon' only for specific products

EllaFS
Excursionist
23 0 6

Hi there!

 

I have a collection of products that I want live on the website before our launch date. I have set the stock to 0 so it will show 'Sold Out' - however, I want it to say 'Coming Soon'.

 

Website here: https://futureselfshop.com/

 

Thanks!

Ella

Replies 2 (2)

StevieW
Shopify Partner
12 1 6

Hi Ella

 

Try tagging them with something like 'comingsoon', then inside the theme liquid, where it usually displays sold out, update to add a check for the tag.

 

Something like (not tested)

{% for tag in product.tags %}
  {% if tag contains 'comingsoon' %}
    <span>Coming Soon!</span>
  {% else %}
    <span>Sold Out</span>
  {% endif %}
{% endfor %}

 

Want an easy way to open the Shopify Admin for Products, Pages, Collections and more? Use the FREE Shopify Admin Redirect chrome extension.

PaulNewton
Shopify Partner
7721 678 1625

If you have an OS2.0 theme whose product template uses custom-liquid blocks then make an alternate template with the buy-buttons removed.

And in it's place add a custom-liquid block with liquid logic and the html for the coming soon text.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org