open Cart
Shows the cart to the buyer. The storefront decides whether that means opening a drawer or navigating to the cart page.
You can use this after adding an item, so the buyer sees what happened without your app needing to know how the cart is presented.
It takes no arguments and resolves with nothing. Without a configuration, it opens a cart drawer it recognizes, and navigates to /cart when it finds none.
Anchor to openCartopen Cart()
open Cart()
Shows the cart to the buyer. The storefront decides whether that means opening a drawer or navigating to the cart page.
Anchor to openCart-returnsReturns
Promise<void>Promise<void>
Was this page helpful?