Hiding price for products in collection

Marb2023
Tourist
7 0 2

Hi. I would like to hide the price for the products containing the tag 'businesslisting' (also in collections) . I tried this solution but I can't find a product card liquid position. Is it called something else in my Motion theme? Could someone kindly direct my where and what code should I use?

 

Page:
https://afc0f3-3.myshopify.com/?_ab=0&_fd=0&_sc=1

Replies 2 (2)

Moeed
Shopify Partner
3695 932 1165

Hey @Marb2023 

 

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

{% if product.tags contains 'businesslisting' %}
<style>
.price {
    display: none;
}
</style>
{% else %}
 <style>
.price {
    display: block;
}
</style>
{% endif %}

 

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. ❤️
Marb2023
Tourist
7 0 2

Hi Moeed, Thank you for reaching out. Unfortunately the prices are still visible 😕

 

Screenshot 2023-11-20 at 13.06.48.png