How to remove add to cart button for some products?

Cecile_M
New Member
4 0 0

Hi there,

I hope someone can help me out! My print-on-demand provider is Gelato, and I create customizable artworks where I allow my customers to upload their own image to create a personalized product for them.

My concern is that I don't want customers to unintentionally order my example products by confirming the "Add to Cart" button before personalization. I could remove the dynamic checkout button or delete the "Buy Button" section in the theme, but unfortunately, that would also make the Personalized Button disappear. Additionally, I need the Add to Cart button for products that will not be customizable, so I cannot remove the entire button.

Is there a solution for this?

Replies 5 (5)

kaiyaa
Excursionist
196 14 20

Hello you can use tags for that.

You can add a specific tag in product which you don't want to show add to cart and add a condition in product.liquid file for that

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Was I helpful? Buy me a coffee
For fast response Message me
Need Help Message me
Cecile_M
New Member
4 0 0

Hi Kaiyaa,

Thank you for your response, although your answer is a little too vague for me. Since I'm new to Shopify and not a coder, I still don't understand where to add any specific tag to the product description as you are suggesting in order to disable the 'add to cart' button. Additionally, I'm unsure of how and where to add a condition in the product.liquid file as you've suggested. Could you please be a little more specific?

kaiyaa
Excursionist
196 14 20

Yes sure @Cecile_M 

you can open product and in product on right hand side you have a option for adding tags you can add a specific tag here "hide-add-to-cart"

after that you need to find the code where add to cart is added now you need to add a condition in code

{% unless product.tags contains 'hide-add-to-cart' %}
{% endunless %}

 
and save it.

If you need more help let me know i can help you to write code in your theme.

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Was I helpful? Buy me a coffee
For fast response Message me
Need Help Message me
Cecile_M
New Member
4 0 0

I am going to continue working on it today! Will let you know if it worked! 

kaiyaa
Excursionist
196 14 20

Yeah, Sure 
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated

Was I helpful? Buy me a coffee
For fast response Message me
Need Help Message me