How to hide the prices of sold out items in the 'Cascade' theme

snugdepot
New Member
2 0 0

I went to product.liquid under template and this is what it says:

"availability" : "http://schema.org/{% if product.available %}InStock{% else %}OutOfStock{% endif %}",
"price" : {{ variant.price | divided_by: 100.00 | json }},
"priceCurrency" : {{ cart.currency.iso_code | json }},
"url" : {{ shop.url | append: variant.url | json }}
}{% unless forloop.last %},{% endunless %}
{%- endfor -%}
]
}
</script>
{% endunless %}

</section>

 

How do I edit to hide the prices of sold out items? It can say $0.00 or just be hidden - either way.

0 Likes
JHKCreate
Shopify Partner
2031 328 442

Hello,

what theme are you using and can you please share the complete product template liquid file

Thanks

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes