Re: Remove Add To Cart Button in Debut Theme

Solved

How can I remove the Add To Cart button in Debut theme?

zhenyathekid
Excursionist
17 0 15

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>
Accepted Solution (1)
KetanKumar
Shopify Partner
37094 3645 12053

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 Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

View solution in original post

Replies 9 (9)

KetanKumar
Shopify Partner
37094 3645 12053

@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 Partner | 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 15

@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
37094 3645 12053

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 Partner | 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 15

@KetanKumar 
It worked perfectly.
Thanks!

Formula
Visitor
2 0 2

We followed steps and added code to line 7000, but haven't seen a difference. Cart is still present. https://sharktales.art 

KetanKumar
Shopify Partner
37094 3645 12053

@Formula 

sorry bt i can't see add to cart button 

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 Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Shopstar
Visitor
1 0 0

Thank you! This worked perfectly, note file name is theme.scss.liquid

Bless11
Visitor
1 0 1

This is very helpful. Thank you. I am wondering, so, when the customer clicks on buy now, it doesn’t also add to cart. Is it possible to also make it add to cart when someone clicks on buy now. So that if they abandon it, they can come back and go to their cart. Or if the customer wants to buy more than one product. 

KetanKumar
Shopify Partner
37094 3645 12053

@Bless11 oh sorry for that issue can you please send your store url and issue video or image?

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 Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing