Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Hiding price for products in collection

How can I hide product prices for a specific tag in the Motion theme?

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
6304 1712 2059

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

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


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