Change "Out of Stock/Sold Out/Unavailable" product text buttons ONLY to selected products

Topic summary

A store owner wants to customize product button text for specific items only, without affecting all out-of-stock products globally.\n\nDesired Changes:\n- \

Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

I would like to change the “Sold Out” text on the button to “Custom Order Only” and the “Unavailable” button text to “Contact Us”.

A rule which applies to selected products ONLY (shown in purple). I do not want to change this rule that affects all products that are out of stock or 0 in stock.

Example collection: https://americanbeauty.com.au/collections/gel-preps-removers

Would I need to create a tag for these products and enable an IF code for this? If I need to make a tag for this, I would like to name this tag as “bulky”.

I would also like to remove the text “We have run out of stock for this item” for only selected products that meets the condition above (in purple)

Example: https://americanbeauty.com.au/products/virgin-acetone-5l

Hello @americanbeautys ,

Yes you can go with tag or a metafield option through which you can select in which product condition will apply.
And after that find the code of the elements you want to change.
e.g.
If you want to change button unavailable to contact us then condition will be
{% if metafiel.custom.value %}
// show your custom button

{% else %}

// default button

{% endif %}
same logic will works for other elements.

Thanks

1 Like

Can you please give me step by step instructions and the actual code? This is not straight forward to me.

If you are not good with code then you need a developer who will find in your theme where to apply these conditions.