Remove Add To Cart Button in Debut Theme

Solved
zhenyathekid
Excursionist
17 0 14

Hey! 

I'm using Debut theme and I need to remove Add To Cart button and keep only Buy It Now. I've tried to remove it with code (I'll attach part of the code) but then slider on my product pages started working wrong. Let me know how can I do it?

Part of code I removed below:

Click to expand...
Click to expand...
<button type="submit" name="add"
{% unless current_variant.available %} aria-disabled="true"{% endunless %}
aria-label="{% unless current_variant.available %}{{ 'products.product.sold_out' | t }}{% else %}{{ 'products.product.add_to_cart' | t }}{% endunless %}"
class="btn product-form__cart-submit{% if section.settings.enable_payment_button and product.selling_plan_groups == empty %} btn--secondary-accent{% endif %}"
{% if settings.enable_ajax %}aria-haspopup="dialog"{% endif %}
data-add-to-cart>
<span data-add-to-cart-text>
{% unless current_variant.available %}
{{ 'products.product.sold_out' | t }}
{% else %}
{{ 'products.product.add_to_cart' | t }}
{% endunless %}
</span>
<span class="hide" data-loader>
{% include 'icon-spinner' %}
</span>
</button>
KetanKumar
Shopify Partner
17333 1872 6474

@zhenyathekid 

Sorry you are facing this issue, it would be my pleasure to help you.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
zhenyathekid
Excursionist
17 0 14

@KetanKumar 

Hey!
Thanks for your reply. 

I sent my website url to you via private message. Check it our please.

Awaiting for your reply!
Thanks.

KetanKumar
Shopify Partner
17333 1872 6474

This is an accepted solution.

@zhenyathekid 

Thanks for details 

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.css ->paste below code at the bottom of the file.
this code apply for after 5 - 6 second

.product-form__cart-submit {display: none;}

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
zhenyathekid
Excursionist
17 0 14

@KetanKumar 
It worked perfectly.
Thanks!

0 Likes