Hide Price Only For Products Prices At $0.00 (Not Just Sold Out)

Hide Price Only For Products Prices At $0.00 (Not Just Sold Out)

Danish39
Shopify Partner
1 0 0

Hi, 

 

I've store with prestige theme. 

 

I want to hide products prices that have prices $0.00 

Please let me know thanks!

Reply 1 (1)

Asad-Mahmood
Pathfinder
80 13 14

To hide the price when the price equals $0, you need to enclose the liquid code responsible for showing the price within a conditional statement. Here's how you can do it:

{% unless product.price == 0 %}
   <!-- Your liquid code to display the price here -->
{% endunless %}

 

If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com