Hidden pricing for one collection

AudraD
New Member
4 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
3539 892 1107

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 developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App
AudraD
New Member
4 0 0
Moeed
Shopify Partner
3539 892 1107

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 developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Canva to Shopify in clicks - Free App
AudraD
New Member
4 0 0

It's not working for me 😩

 

Screenshot 2024-01-18 at 7.31.38 PM.png