Change Sold Out to coming soon for only specific products

I am using the debut theme on https://shop.acetrucks.com/collections/af1-trucks

I would like to know how to set up either a different template or tag that will allow to display “Coming Soon” instead of “Sold Out” on only some of the products.

I know how to change the “sold out” text for all products inside the en.default.json but not looking for a global solution.

If I knew where the product template referenced the en.default json, I could see making an alternate json but not sure if works that way.

Best practice for this?

2 Likes

Do you know what I can update to the product template? I know how to duplicate it and assign to different products. Thanks @Kenny07

I have some products I want to say “coming soon” on the cart button when they are sold out and some I want to say “sold out”.

So far I have tried a solution from another post using the tag “coming_soon”. If a product has this tag, it should read “coming soon” on the cart instead of “sold out.” Its not working though. I placed the below in the product.price.liquid

{% if product.tags contains ‘coming_soon’ %}
{% assign comingsoon = true %}
{% else %}
{% assign comingsoon = false %}
{% endif %}

{% if product.available == false and comingsoon == true %}
{{ ‘products.product.coming_soon’ | t }}
{% elsif product.available == false and comingsoon == false %}
{{ ‘products.product.sold_out’ | t }}
{% endif %}

This is placed in the en.default.json underneath the sold out statement

“coming_soon”: “Coming Soon”,

Here is a page with a sold out product:

https://shop.acetrucks.com/collections/af1-trucks/products/ace-af1-anodized-blue-orange?variant=39871255216210

Thanks @Kenny07

Hi there,

Did you find a solution to this? I’m having the exact same problem!

Thanks :slightly_smiling_face:

1 Like

I’m unable to test right now, but I think I may have done this by making the product unavailable

and changing the language for that in locales > en.default.json in the code editor.

“products”: {
“product”: {
“regular_price”: “Regular price”,
“sold_out”: “Sold Out”,
“coming_soon”: “Coming Soon”,
“unavailable”: “Coming Soon”,
“on_sale”: “Sale”,
“quantity”: “Quantity”,
“add_to_cart”: “Add to cart”,
“back_to_collection”: “Back to {{ title }}”
}

Thanks for this!
Sorry if this is obvious, but how do I mark a product as ‘unavailable’? I can’t seem to see this option anywhere on the product pages.

How can I show the price with the coming soon text like this:

1 Like

I am also interested in knowing the solution!