If you need anything else feel free to reach out to our team

Methods

Close the cart drawer.
closeCart()

Open the cart drawer.
openCart()

Toggle the cart drawer.
toggleCart()

Add a new cart item or updating existing.
monster_addCartItem(items)

Parameters:
NameTypeDescription
ItemsCartitemThe cart item.


Remove a cart item
monster_removeCartItem(id)

Parameters:
NameTypeDescription
idnumberThe cart item id.


Reset the cart items.
monster_setCartItems(items)

Parameters:
NameTypeDescription
itemsArray.<Cartltem>The cart items array.


CSS selectors

- cart container (including the overlay): #monster-upsell-cart
- cart wrapper: #monster-cart-wrapper
- header text: .mu-cart-header
- cart item: .mu-cart-item
- savings: .mu-savings
- subtotal: .mu-subtotal
- checkout button: #mu-checkout-button
- fbt container: .mu-frequently-container

Open cart with URL
Add "/#cart" to the url
Example:
https://monsterapps-beta.myshopify.com/#cart
Was this article helpful?
Cancel
Thank you!