Re: How do I Remove pricing from certian collections with Empire Theme

How do I Remove pricing from certian collections with Empire Theme

Sean_Ring
Tourist
7 0 2

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.

Replies 13 (13)

Akibhusen
Shopify Partner
715 121 148

@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' %}
  <p>Contact us for pricing</p>
{% else %}
  {{ product.price | money }}
{% endif %}
Sean_Ring
Tourist
7 0 2

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?

Akibhusen
Shopify Partner
715 121 148

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.

 

 

Sean_Ring
Tourist
7 0 2

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 ? 

Akibhusen
Shopify Partner
715 121 148

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?

Sean_Ring
Tourist
7 0 2
9082
Sean_Ring
Tourist
7 0 2

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

Sean_Ring
Tourist
7 0 2

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 

Akibhusen
Shopify Partner
715 121 148

@Sean_Ring , please check and confirm

Sean_Ring
Tourist
7 0 2

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.

Akibhusen
Shopify Partner
715 121 148

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

DanHadman
Visitor
2 0 0

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' %}
  <p>Contact us for pricing</p>
{% else %}
  {{ product.price | money }}
{% endif %}

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

Ashley_Roulston
Tourist
6 0 3

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