Hi all,
I'd like to change the 'Sold out' text on one of my collection pages (I've already duplicated the collection template etc) to different text.
I don't want to change the option in languages as I have other collections that are using 'Sold out' and want to keep that.
Here's the code that I think I need to change...
<span class="product-thumbnail__sold-out sold-out">{{ 'products.product.sold_out' | t }}</span>
{% endif %}
</span>
So how do I make it say something other than what's in the languages?
Thanks all!
Lisa
Solved! Go to the solution
This is an accepted solution.
Thanks for post
do you have a different collection template so just change it
<span class="product-thumbnail__sold-out sold-out">your text here</span>
{% endif %}
</span>
Thank you so much @KetanKumar that worked perfectly.
If we wanted to, how could we chance the 'SOLD' text (in the collection below) to display the original price (greyed out).
https://alwayswearred.com/collections/hand-knits-2021
If this is too much trouble to explain don't worry
Many thanks,
Lisa
no, rush
let me know what do you want on-collection page if possible to share a screenshot?
Thank you very much @KetanKumar
Actually, if we want to change the Sold Out text on the product page to SOLD, how do we change that please?
Here's the code...
{% comment %} Sold out {% endcomment %}
<span class="sold_out">{% if variant.available == false %}{{ 'products.product.sold_out' | t }}{% endif %}</span>
I tried (using your previous example) but failed as it inserted the words SOLD alongside the price when a product was available and in stock.
Here's the screenshot of a product page.
This is an accepted solution.
Yes, please try this
{% comment %} Sold out {% endcomment %}
<span class="sold_out">{% if variant.available == false %}Sold{% endif %}</span>
it's my pleasure to help us
if you have any queries and issues please feel free to contact me here.
Email: bamaniyaketan.sky@gmail.com
Skype: bamaniya.sky
User | Count |
---|---|
547 | |
210 | |
127 | |
79 | |
46 |