Urgent help needed - Change sold out badge to coming soon - Dawn theme

I have a bit of a dilemma.

I have products that I want to showcase before launching; putting the quantity as 0 shows the sold out badge on the product page and collection pages.

Customers then message asking if it’s already sold out when it hasn’t launched yet.

Is there a way to change the badge to “Coming Soon” instead of displaying it as “Sold Out”?

@RDSHOP please check if you have button text in product section of your default theme content,

your store admin > Online Store > Themes > in the current theme, click “…” > Edit default theme content

Just checked and I don’t have that

@RDSHOP can you accept me as collab? I can check this code and solve this issue

Yes of course, please PM me :slightly_smiling_face:

@RDSHOP please check

Hello @RDSHOP

  1. Go to Online Store > Themes > Edit Code

  2. Find the product badge code

Depending on your theme, check files like:

product-card.liquid

card-product.liquid

main-product.liquid

Or a snippet like product-badge.liquid

Look for code like this:

{% if product.available == false %}
Sold Out
{% endif %}

Replace it with this logic:

{% if product.available == false %}
{% if product.tags contains 'Coming Soon' %}
Coming Soon
{% else %}
Sold Out
{% endif %}
{% endif %}

The first person who replied is currently looking into it.

The second person who replied I’ve send a PM to them as I’m not sure where exactly input that code :sweat_smile:

If you could take a look too, that would be great :slightly_smiling_face:

I have sent you a PM :slightly_smiling_face:

Hello @RDSHOP ,

Go to the Online Store and follow this method. I’ll provide you with screenshots to show how to do it.

Results: