Wonderful, this worked perfectly! I wasn’t sure what to write (or where to put it).
You were correct - Dawn theme. I was able to easily locate the price.liquid file and add the code you highlighted + endif section at the end. Thank you so much!
Hey @Taknify Can you help me with a different solution approach for the same code you shared ?
1, hide the price of the product when it is “zero” from both the product card and product details page , Also remove the add to cart button and show a different button with a custom link ? Can you help me for this ?
Since this is a paid theme, I am not able to view the code to make changes. If you can provide the code or something so I can check, I can likely help you further on it.
Hi, can you specifically paste what to write if I don’t want to display a product price set at $0? I copied exactly what you wrote here and it’s not working. I have the dawn theme
I’ve tried adding the code to the price.liquid as well, but unfortunately this isn’t working for me either.
So I have collections where some products will have no price (price = £0), but others will have a price. The ones with price = £0 will need a “request code” button instead of “add to cart”.
nothing changes … tried for 2 days (your code seems cut off or incomplete anyway)
bare in mind most people here are complete newbies … so i cut and copy your code and nothing happens
{%- if product.quantity_price_breaks_configured? -%}
{%- if show_compare_at_price and compare_at_price -%}
{%- unless product.price_varies == false and product.compare_at_price_varies %}
{{- ‘products.product.price.regular_price’ | t -}}