Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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' %}
<p>Contact us for pricing</p>
{% 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 is the code you can use and thank you for your help!
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
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.
Could you please explain in more detail? I don't understand
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
Hi Akibhusen,
What would you change this code to so that you have to login to see the pricing?
In today’s interview, we sat down with @BSS-TekLabs to discuss practical strategies for...
By JasonH Nov 13, 2024The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024