Dawn theme v11 - Can we use custom ATC button and refresh Cart drawer/Cart item counts ?

Dawn theme v11 - Can we use custom ATC button and refresh Cart drawer/Cart item counts ?

Sanket_Patel
Shopify Partner
20 0 2

Hi,

We have requirement to display different products as part of same product's variants. So on click of swatches, we need to change product title, url, prices, subscriptions, products options/variants, descriptions, images etc.. 

Still we like to give feel as if visitor has only changed a variant. 

I am developer and almost did this using ajax, but.. still its takes loading time b'cos I am getting product details using ajax. I am using default JS code of Dawn for all other functionality (ATC/Cart Drawer). 

 

I like to use custom ATC button, so that I can refresh cart drawer and cart counts using default Dawn theme's code. 
Is there way like dispatch triggers or something to re-execute cart drawer component after ATC call ?

If you are experience developer then please help. 

Freelancer | Software Developer | Shopify Customization Guru | Shopify Public App Creator | sanket972528@gmail.com | https://sannket.com
Replies 0 (0)