Add to cart button without opening cart drawer Dawn 5.0.0

Topic summary

Goal: add an “Add to cart” button on a product page that adds specific items without triggering the cart drawer in Shopify’s Dawn 5.0.0 theme.

Context: the cart drawer is the slide-out mini cart; the requester wants a silent add-to-cart behavior, similar to product add-ons on the linked Milk Bar example.

Request: guidance on where the theme’s add-to-cart function lives and how to implement a button that adds items once the main product is added, without opening the drawer.

Status: no solutions or decisions provided; discussion remains open.

Summarized with AI on February 16. AI used: gpt-5.

I want to add a “add to cart” button on the product page to add certain products to an order without opening the cart drawer. I am using the Dawn 5.0.0 theme that already has a cart drawer build in. So my question is where can I find the “add to cart” function and how do I make a button to just add to cart once I added the product from the product page. Similar to the product add-ons on this store https://milkbarstore.com/products/strawberry-shortcake-cake?variant=39877413339209#!

Any help would be greatly appreciated!