Hello Shopify community,
I am trying to hide the price only on the items once they have “sold out”. Anyone out there know what the coding would be to make this happen?
My website it justbree.com
Thank you in advance!
Thank you!
Hello Shopify community,
I am trying to hide the price only on the items once they have “sold out”. Anyone out there know what the coding would be to make this happen?
My website it justbree.com
Thank you in advance!
Thank you!
Hello @justbree ,
Use this code
{% if product.available %}
// Default price code goes here
{% else %}
// leave it blank
{% endif %}
Keep note you have to use this condition in multiple places where you will find the price code.
Also keep note if there is a variant product in your store then you have to write a callback function too so the sold-out variant will also update properly.
Thanks