Hi,
I would like to hide the price if it is 0 in the featured collection page.
Someone who know how to do that? I only find code snippets to remove all price’s in a featured collection page.
Hi,
I would like to hide the price if it is 0 in the featured collection page.
Someone who know how to do that? I only find code snippets to remove all price’s in a featured collection page.
Hii, @CGroenhaug
Kindly share your store URL so,
I can solve it perfectly.
Thank You.
Hi! We have not changed the theme yet - it its the dawn theme with almost no changes I am looking at now and want to see if I can fix it to hide price if it’s 0 in the featured collection page.
Hello you can try this by simply adding a condition.
Go to ‘sections > main-collection.liquid’ file. Find for price snippet that is rendered in that section. In price snippet
Find for {{ product.price }}
And add below bold condition above that
{% if product.price != blank %}
{{ product.price }}
{% endif %}
If the solution helps you please like and accept as solution. For further queries DM or mail at shopify.dev.34@gmail.com
In dawn 2.0 there is no main-collection.liquid and I allready have checked main-collection-product-grid.liquid, featured-collection.liquid and main-list-collection.liquid, and there is almost no places they use price in all of them.
For exampel the only place they use it is in featured-collection.liquid:
{{ ‘component-price.css’ | asset_url | stylesheet_tag }}