Remove buy now & add to cart on ONE product page

Solved
Highlighted
Tourist
3 0 1

Hello there !

I'm using the brooklyn theme and i got a customized / made on demand section. 

Im using a classical product page to show the different leather we can use (one variant picture per leather) and then i would like invite people to write an email to us for theses demands.

As we can't sell thats products directly, i'd like to remove the "add to cart" and "buy now" buttons from this specific product page.

does somebody as a clue on how i can do that ?

 

Thanks a lot for your help !

0 Likes
Highlighted
Shopify Expert
154 17 21

This is an accepted solution.

You could do this a couple different ways. 

1. Create a custom product template just for this product by copying the product templates and remove the Add to Cart buttons:

https://shopify.dev/tutorials/customize-theme-create-alternate-templates

 

2. Add a tag to the product and wrap the Add To cart buttons with code that checks for this tag:

https://shopify.dev/docs/themes/liquid/reference/objects/product#product-tags

{% assign productTags = product.tags | join:',' %}

{% if productTags contains 'special-tag' %}
    //Send us an email text
  {% else %}
//Add To Cart buttons
{% endif %}
W3trends is one of the leading app developers in the Shopify ecosystem. We can handle anything E-commerce or App related for your business. Feel free to message me if you need any work done!
1 Like
Highlighted
Tourist
3 0 1

Many thanks w3trends, it perfectly works ! :)

0 Likes