Hide product pricing on collection and products pages for tagged products.

Hide product pricing on collection and products pages for tagged products.

VD10
New Member
9 0 0

hi all,

 

I'm trying to hide product pricing on collection & product pages for products tagged with the tag "Hide-Pricing" 

I'm using the enterprise them.

Any help would be appreciated, thanks.

The simpler the answer the better for me (the beginner) to understand. 🙂

Replies 9 (9)

Mehran_Ali
Shopify Partner
461 63 69

Hi @VD10 

 

This can easily be done using some liquid condition on price if you are familiar with coding rather than just follow the instruction otherwise reach me out I will help you 

 

Solution :
Go to code edit and search for the price snippet than their will be a price div above that div just past that if condition

{% if product.tags contains 'hide-price' %}

 {% endif %}


I hope this solution worked for you! if not share your collaboration code or reach me out on email and number
if Yes Just like this Reply and Mark it as a Solution and to keep me motivated BUY ME A Coffee

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

VD10
New Member
9 0 0

Hi Mehran,

 

Thanks for your reply.

Am i looking at the correct file? Please see attached.Untitled.jpg

Where should I place your code?

Mehran_Ali
Shopify Partner
461 63 69

At start where its say class="price 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

VD10
New Member
9 0 0

Hi Mehran, couldn't get it to work. 😞

Mehran_Ali
Shopify Partner
461 63 69

Can you share yor collaboration code i can help you 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

VD10
New Member
9 0 0

Untitled2.jpg

Mehran_Ali
Shopify Partner
461 63 69

OKay 

Mehran_Ali_0-1733036168291.jpeg

 

In this screenshot, you can start your if the condition from the line 23 and end it on line 44

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

VD10
New Member
9 0 0

Hi Mehran,

 

getting much closer. 🙂 It is doing the opposite. It is showing the price for products with the "hide-price" tag and not showing the product pricing that don't have the tag.

Mehran_Ali
Shopify Partner
461 63 69

Hi @VD10 

Try using this insted of If

{% unless product.tags contains 'hide-price' %}

{% endunless %}

 

I hope this solution worked for you!
if Yes Just like this Reply and Mark it as a Solution and to keep me motivated BUY ME A Coffee

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536