@Ninthony I tried to send you a Private Message but couldn't figure out how to do it. I need your help to solve how to hide price products only for this specific Collection: https://ducatilima.com/collections/motos
As you can see, I have solved how to hide all prices on all collections but not just in a specific one
Thanks!
Hi everybody,
Thanks @Ninthony for all your tips ! I managed to hide prices on product page, but I still haven't found the way to hide it in a particular collection page. I use Brooklyn theme and I didn't find where the piece of code should be placed (Templates, Sections and Snippets).
If anybody could help me on this?
Many thanks !
Hi Ninthony, I really need your help to hide the price from my collection list. I can hide the price on my products and I have put all the code in the collection-template.liquid, however the price is still showing up on my page. Could you please help me?
I could not find option to DM you as well
Hi! I have also tried your solutions but cannot seem to get it right
I need to hide all the prices for the products on a collections level, not product page (for all my products). And then for one product specific, the Adventure Package, I need to hide the current $0.00 price both from the collection and the product page. Can you please help?!
Hi, I have the same problem with the theme Brooklyn.. In the collection-template.liquid when I search for the price there ar no price showing up... Do you maybe have a video to explain it or can you help me in another way.... already search 4 hours to solve the problem, still nothing worked for me..
To hide the price in Brooklyn, open product-grid-item.liquid in your snippets folder. Scroll to about line 83 and wrap these lines in an unless statement:
{% unless collection.handle == "your-collection" %}
<span class="grid-product__price-wrap">
<span class="long-dash">—</span>
<span class="grid-product__price">
{% if on_sale %}
<span class="visually-hidden">{{ 'products.general.sale_price' | t }}</span>
{% else %}
<span class="visually-hidden">{{ 'products.general.regular_price' | t }}</span>
{% endif %}
{% if product.price_varies %}
{{ product.price_min | money_without_trailing_zeros }}
<span class="icon-fallback-text">
<span class="icon icon-plus grid-product__price-min" aria-hidden="true"></span>
<span class="fallback-text">+</span>
</span>
{% else %}
{{ product.price | money_without_trailing_zeros }}
{% endif %}
</span>
{% endunless %}
Thanks for your reply! I tried several things but is still won't work... I am not that good in editing the codes... I replaced the circled code underneath with the code you sended me and changed the name to my collage name. Do you know what I have done wrong? Hope you can help me out! Thanks a lot.
User | Count |
---|---|
446 | |
187 | |
139 | |
61 | |
44 |