How can I hide pricing for a specific collection on my website?

How can I hide pricing for a specific collection on my website?

AudraD
New Member
5 0 0

I am trying to have one collection (canvases) not show pricing on the grid view. I just want the products to be visible with their information, but not be able to see pricing or purchase from my web site. Is there a way to do this?

Replies 4 (4)

Moeed
Shopify Partner
6719 1814 2198

Hey @AudraD 

 

Can you send the url of the collection from where you want to hide the prices from?

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


AudraD
New Member
5 0 0
Moeed
Shopify Partner
6719 1814 2198

Hey @AudraD 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

{% for c in product.collections %}
{% if c.handle == "canvas" %}
<style>
.price {
    display: none !important;
}
</style>
{% endif %}
{% endfor %}

RESULT:

Moeed_0-1705509920407.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


AudraD
New Member
5 0 0

It's not working for me 😩

 

Screenshot 2024-01-18 at 7.31.38 PM.png