Change 'Sold out' text on collection page?

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…

{{ 'products.product.sold_out' | t }}
      {% endif %}
    

So how do I make it say something other than what’s in the languages?

Thanks all!

Lisa

1 Like

@lisaforster

Thanks for post

do you have a different collection template so just change it

your text here
      {% endif %}
    
1 Like

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 :slightly_smiling_face:

Many thanks,

Lisa

1 Like

@lisaforster

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 %}
              {% if variant.available == false %}{{ 'products.product.sold_out' | t }}{% endif %}

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.

1 Like

@lisaforster

Yes, please try this

{% comment %} Sold out {% endcomment %}
              {% if variant.available == false %}Sold{% endif %}
1 Like

Perfect thank you so much @KetanKumar - should we need any extensive dev work we’ll touch base.

1 Like

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

Hi,

Do you know how to change the out of stock design in the collection page? We cannot see it correctly in mobile.

Thank you,

1 Like

@Sdesuan

yes please share store url so i will check and let you know

Hi @KetanKumar !! Thank you for your answer, the store is the following: sdesuan.com

Thank you again :slightly_smiling_face:

1 Like

@Sdesuan

yes i can see sold out text do you need just change texxt?

Hi Ketan,

No, I need to change design in mobile format so that the text is visible.

Thank you