hide prices of products in a collection?

Solved
JoseCifuentes
New Member
1 0 0

Hi, after I placed this code:

{% unless collection.handle == "paintings" %}
  {% include 'product-price' %}
{% endunless %}

the prices of the Collection "paintings" was hidden, but the prices of every product in the store changed to $19.00 as a default.

All I need is to hide the prices in one collection without changing the rest.

Please help.

Thanks

0 Likes
chamacab4
New Member
1 0 0

We have a similar situation in that we need to remove the prices of a particular line of beds on the gallery pages. However, we don't have the HTML sections you are talking about.  How can we make this happen?  

0 Likes
AdamAnas
Excursionist
23 1 6

I've done the same, its not working in search page, if we search for those products in search page its showing the Prices, which we what to hide.
Need Help

0 Likes
BWSheep
Shopify Partner
2 0 0

Hey 

0 Likes
AdamAnas
Excursionist
23 1 6
##- I think i can help you on this I've faced the same issue, In my case
ive created a new template for that particular collection and products -##
0 Likes
Ninthony
Shopify Partner
1637 224 615

Sure @BWSheep I can help you. I'm unfamiliar with your theme. Would you mind if I requested access to your theme and products? The only reason I need access to products is because I want to make sure of your collection handle. If you can send me a DM with exactly what you want to do I'll request access. Just let me know.

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
BWSheep
Shopify Partner
2 0 0

Thanks Ninthony! I have send you a DM

0 Likes
sieber
Tourist
4 0 1

Hello,

I am trying to solve this exact problem using Supply theme, however, I cannot find the exact instances of code. For example, my "collection.liquid" file is mostly blank. Has the structure changed since this was originally solved? 

Ninthony
Shopify Partner
1637 224 615

collection.liquid probably contains a call to another file:

 

{% section 'collection-template' %}

 

You'll want to open collection-template.liquid in your sections folder and look for the price there. 

If my solution helped you, please like and accept as solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
sieber
Tourist
4 0 1

thank you, but in that file it only has the term "price" in the schema

0 Likes