How do I Remove pricing from certian collections with Empire Theme

I am using the Empire theme and some of the products we offer can not be sold online whereas some can.

Does anyone know how to remove pricing from a certain collection ?

I have figured out how to remove the buy now button from these collections but for the pricing I am only able to put a $0 amount. is there a way to remove the dollar amount from these items that I do not want display any price and rather a contact us button for pricing?

Any help would be greatly appreciated.

@Sean_Ring , You can try the below code to hide the price for some collection. let me know if you have any doubt.

{% if collection.handle == 'hide-price' %}
  

Contact us for pricing

{% else %}
  {{ product.price | money }}
{% endif %}

Akibhusen,

Thank you for the reply!

which files does this code need to be placed in and im assuming that it would be placed at the end of the file?

No, not at the end of the file. I hope you have an understanding of the liquid code.

look for the collection.liquid and find the product price code. and add the above code as per the theme code standard.

let me me know if you have any doubt. Also, let me know if I can help you with this.

There is no collection.liquid as a option

there is a collection.json

if you look at the site https://shopnorthbayequipment.myshopify.com/

and then go to Equipment → cold water pressure washers ----> Hotsy Cold water electric you will see it shows $0.00 pricing (this is what im trying to remove) until clicked on which has no pricing and buy it now button.

However other collections like Generators, compressors, parts, accessories, detergent I would like to keep pricing and buy it now.

I am using a no-pricing theme for the pressure washers, parts washers and steamers.

Is this something you can help me with ?

Yes, I can help you with this. I understand what you want.

I can hide the price for some specific collections. And it won’t affect other collections which display the price.

I need to access your theme code. If you don’t mind could you please give me collaborator access?

9082

9082 is the code you can use and thank you for your help!

1 Like

Access granted!

So I would like no price to show for the following…

Cold water pressure washers — Hotsy / Mi-T-M both gasoline and Electric

Hot Water Pressure Washers — Hotsy / Mi-T-M both gasoline and Electric

Parts Washers - only one brand Cuda

Steamers - Sioux / Optima

I do want to show pricing for the following…

Generators

Compressors

Parts

Accessories

Detergents

Thanks again for your help!

Sean

@Sean_Ring , please check and confirm

This is perfect! Thank you.

One last question I have that I have been having a hard time figuring out is…

when you click on “Equipment” Ive added a collection that I was trying to add pictures of the six different types equipment that would link directly to the appropriate main collection EG: if you clicked on “Equipment” you would land on the page that currently shows the name of each equipment that and by clicking on the name of the equipment it links to the main collection. I am hoping to have a picture of each piece of equipment instead of the verbiage that a customer can click on if they happen to land on the equipment page.

1 Like

Could you please explain in more detail? I don’t understand

Hi Akibhusen,
What would you change this code to so that you have to login to see the pricing?

Hi there Akibhusen, I am using Empire theme and I need to remove the pricing from a specific collection just as you have done to help

{% if collection.handle == 'hide-price' %}
  

Contact us for pricing

{% else %}
  {{ product.price | money }}
{% endif %}

Can you let me know where I need to add this to hide pricing on one collection :slightly_smiling_face: thankyou