Hide price in product card for items priced at $0 (Prestige 8.1.2)

I have some products that are “enquire for price” only.

I need to hide the $0 price tag on their product cards on the collection page.

This used to be a default on the previous version of Prestige, but now it’s showing up as $0.

I was wondering if anyone has found a solution to this?

Hi @Zanuso

Can you please provide your store URL and password as well if applicable, so that I can provide you solution that can work for you.

Best regards

Sahil

Hi Sahil,

My store URL is:
https://thc-living.myshopify.com/

Thank you.

Hi @Zanuso Please add this code in your Theme.liquid file.

{% if product.available %}

{% else %}

{% endif %}

If you are not sure where is your Theme.liquid file please follow the steps:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in Theme.
  4. Click Edit Code.
  5. Search theme.liquid in the code in left hand side.
  6. Add the code given in the bottom of the file just above tag

If you will unable to implement the same then I’m happy to do this for you, let me know. I can implement the changes so that this will work well for you.

Hopefully it will help you. If yes then Please hit Like and Mark it as solution!

Best Regards

Sahil

Hi Sahil,

I’ve added the code but the $0 is still showing.

Zanuso

Hey @Zanuso

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 tag

{% if product.price == 0 %}

{% else %}

{% endif %}

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi Moeed,

This code doesn’t seem to work either.

Maybe other liquid files need to be edited?

Zanuso

Hi @Zanuso It seems like the theme have some other code, and you need to find that. Without that the price can’t be hidden. and without looking into the code no one will be able to give you exact solution.

If you will unable to find the same then I’m happy to do this for you, let me know. I can implement the changes so that this will work well for you.

Hopefully it will help you. If yes then Please hit Like and Mark it as solution!

Best Regards

Sahil