I am working with the Dawn theme in Shopify and currently developing a Shopify app. As part of this app, I want to add a Quick Buy Me button on the product page.
When the customer clicks this button, the product should be added directly to the cart drawer, similar to how the product page native “Add to Cart” button works in Dawn.
Could someone explain how the Dawn theme handles cart drawer updates when the “Add to Cart” button is clicked, and how I can replicate the same behaviour for my custom button?
Is there a custom event in the Dawn theme that I can use to update the cart drawer when triggering it from my custom button?
What I expected:
I expected the cart drawer to refresh and display the newly added product, the same way it does when using Dawn’s built-in Add to Cart button.

