remove the (price) and the (add to cart) button from some products

Highlighted
New Member
4 0 0

I'm looking for someone that can show me step by step how to remove the (price) and the (add to cart) button from some of my products in my e-shop.I'm using the Brooklyn theme.

I have done the following that might help to find the products easier and edit the code.

1)  I have created a separate collection with those products  2) I have given those products a unique tag name.

 Many thanks

0 Likes
Highlighted

Hello ,

You can set the inventory item 0 for that product.

So add to cart button will not display for that product.

Want to modify or incorporate custom changes on store, Hire us
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Whats app
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO ; Digital Marketing & amp | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
New Member
4 0 0

Thank you but that would make it look like the product is out of stock

0 Likes
Shopify Partner
1025 214 467

@foxyskin 

 

Yes, we can do it by using product tags. 

First, add product tag "no-price-n-button" tag in all products in which you want to remove.

then you need to find out the price and addtocart button code and put between following code:

{% unless product.tags contains "no-price-n-button" %}
...
...
{% endunless %}

The code between above condition will not occur if the product has "no-price-n-button" tag.

Let me know if you need more help!

 

Thank you,

Tejas

 

Shopify Expert | Skype: tejas.nadpara
- Like and Mark as an Accepted Solution if reply helpful
- Feel free to contact me on support@hexaecommerce.com regarding any help
0 Likes