Custom "Quick add" buttons on custom section not working as intended

Custom "Quick add" buttons on custom section not working as intended

JesusGomicare
Excursionist
40 0 6

Hi guys,

 

I have this "quick add" buttons on a custom carousel that I created

 

JesusGomicare_0-1738601418413.png

 

The idea is for them to behave the same as a quick-add button in a featured collection and cart-drawer. I.E when clicked the product is added and the cart-drawer opens showing the product and updated value.

 

I've only been able to do 2 other things

 

1) I've managed to make it go directly to the cart-page when clicked with the updated values

 

2) I've made it so that when clicked the product is added, but the cart drawer doesnt open and the in general the cart isn't updated until the page is reloaded.

 

Can anyone give me a hand with this please?

 

Basically if we can make it so that it does what I did in No.1 but opens cart-drawer instead of cart-page it would be fenomenal.

 

The URL is https://gomicare.es/ 

 

Thank you very much

 

 

Reply 1 (1)

PritTala
Shopify Partner
27 2 4

Hello @JesusGomicare 

For open cart drawer you have to use snippet of buy buttons inyour file contact me on my mail i can fix it for you!
mail: prittala2111@gmail.com

Worked for you? Like and accept the solution!

Prit Tala - Shopify Developer
Contact: Prittala2111@gmail.com