How to hide pricing for certain products?

My goal is to hide pricing for certain products, I think the easiest way to do this would be to hide pricing for products that cost $0.00. Anything that costs more that $0.00 should show its price.

I have found ways to do this in the product page however, the price still shows in search pages. Please let me know if anyone has a solution, much appreciated!

Hi @RyanRichie

This is Richard from PageFly - Shopify Page Builder App

If you are using Dawn theme you can try to add this condition to price.liquid

Add a condition on price__regular div.
You can add whatever logic you want on it.

If you are on another theme, you can try to search with file that’s handle the pricing.

Hope this can help you solve the issue

Best regards,

Richard | PageFly

Hi @RyanRichie ,

First of all, you have to identify the HTML element of price. The element can be different in each theme.

Then put those elements in the following price checking code:

{% if product.price > 0 %}
       
{% endif %}

For example:

{% if product.price > 0 %}
   
      {{ 'products.product.price.regular_price' | t }}
   
   
      {{ money_price }}
   
{% endif %}

Hope this helps