Cart
The wix-stores.Cart module contains functionality for working with your site's cart from client-side code. Learn more.
Guides
Additional information about this section
Functions
Perform actions on an object
- getCurrentCart( )
Gets the current site visitor's cart.
- addProducts( )
Adds one or more products to the cart.
- updateLineItemQuantity( )
Updates the quantity of a specified line item in the cart.
- removeProduct( )
Removes a specified product from the cart.
- applyCoupon( )
Adds and applies a coupon to the cart.
- removeCoupon( )
Removes the coupon currently applied to the cart.
- showMiniCart( )
Shows the Mini Cart.
- hideMiniCart( )
Hides the Mini Cart.
- onChange( )
An event handler that is triggered when items are added or removed from a cart.