We have a Shopify store on the Dawn theme and I’m trying to change the “Sold Out” text on products that are tagged “coming soon” to show “Coming Soon” instead. I found a thread on the community forms that suggested adding this code to the main-product.liquid file to achieve this result:
{% for tag in product.tags %}
{% if tag == 'coming soon' %}
<style>
.product-form__submit > span { display: none; }
.product-form__submit:after {
content: 'Coming Soon';
display: flex;
align-items: center;
justify-content: center;
}
</style>
{% endif %}
{% endfor %}
This correctly changes the text in the form submit / Buy Button area to show “Coming Soon” but does not change the “Sold Out” tag that appears next to the price: https://keenbeanstudio.myshopify.com/products/roll-camera-spy-thriller-story-pack or the matching tag on the category pages: https://keenbeanstudio.myshopify.com/collections/games
I want to keep the option to show products as Sold Out (by simply NOT applying the product tag to those products). I would like to use the Coming Soon tag just for items that have not been made available yet and have 0 inventory in our system until the first shipment arrives.
Is it possible to change the code above to affect the black oval “Sold Out” text as well as the buy button? Or is there a better way to reach this goal?
Thank you in advance!



