Hi, I am trying to hide price for $0 products, but don’t know how to do that. I search from here, but they are in different theme, which not work for me.
My current theme: Pipeline version 4.5.0
Thank you so much!!!
Hi, I am trying to hide price for $0 products, but don’t know how to do that. I search from here, but they are in different theme, which not work for me.
My current theme: Pipeline version 4.5.0
Thank you so much!!!
You are using the “Pipeline” theme, which is a paid theme, so the code can’t be directly inspected.
This is an example based on the Dawn theme:
Look for the main-product.liquid file, as shown in the screenshot:
Screenshot 1
In other themes, this file might have a different name, such as product-template.liquid.
Find the section where the price is displayed in the code.
Wrap the price display code with an if statement to check if the product price is not equal to zero.
Use the following code snippet to conditionally display the price:\
{% if product.price != 0 %}
{% endif %}
For reference, you can check the implementation style in this screenshot:
Screenshot 2.
I hope this helps
Best,
Daisy
Hi @Meiji_Ng_0020 ,
Please send me the code of price.liquid file, I will check it for you