App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I have a theme extension app that allows users to add products to the cart via the AJAX API. How can I open the cart drawer across all themes after successful AJAX call?
@Talok_klot thank you for the detailed response! However, I should have clarified that I am the developer of the theme extension app which gets embedded on any number of Shopify themes, so I am looking for a way to do this without having to have knowledge of any theme-specific cart behavior.
You can use the jQuery code to open the Cart Drawer.
$('cart-drawer').addClass('active');