Hide product price on collections when product is set to $0 in Impact Theme

Hi there.

We are using Impact Theme from Maestroo. For some products we do not want to display the price but get people to contact for price. Setting this up on the Product page is easy, but we would like to do two things:

  1. Hide product price when it is set to zero on collections.
  2. If possible, deactivate the quick buy function on the same products in collections.

We did it with a previous theme, but this theme code is different. We can implement code but just do not know exactly where and then the exact language to make these changes. Help would be appreciated.

Hi @SomethinCr8tive

Can you please provide your Store URL and Password too?

With Regards,
Dbuglab

Hi,

This can be done straight forward by creating a new template for these products which you can easily add when creating this product or you can switch it again to the original one.

Create a new template for the product and define that templates in the products you want the result will look like this

or the way you want.

If you don’t know how to do it let me know to guide you through it, or if you like you can give me access to do it for you while you are following with me until its done

Hi there

Thanks for looking into this. Sorry, I thought I replied with store url.

Please see here: https://www.gymconcepts.com/collections/treadmills-1

So the product page is not the problem. We have done something similar.

It is the product card in the collections itself where we would like to hide price on those items, while still being able to show price on items with price more than 0.

Hi @SomethinCr8tive

Please follow these Steps:

  1. Go to Online Store
  2. Edit Code
  3. Please find theme.liquid file
  4. Add the following code above tag

Hi there

Thanks so much. So this does work to remove all pricing. However, we would just like to remove those that are set to zero. I guess it would require an if statement. It is this statement which we do not know how to apply.

@SomethinCr8tive

Can you please share collab access with me?

Hi,

You need to surround the price with conditional statement you need to look up for the price code it will be something like this

{{ product.price | money }}

and then you need to add surround it with the conditional statement

{% if product.price > 0 %} {{ product.price | money }} {% endif %}

if you don’t know how to do it, please give me access to your store to do it for you.

1 Like

Thank you very much. Really appreciate the hep!

Natasha what is your contact, i need this fixed on my website. I do not want the price to display on the product page if it is $0.00.

Hi, we have the same problem using impact theme. I tried both codes but prices are still shown on collection page. Can you maybe help us? Shop is: www.mein-ponyschrank.de

We want to show no prices in all collections..