wix-stores
The wix-stores module contains functionality for working with your site's store 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 shopping cart.
- addCustomItemsToCart( )
Adds custom items to the cart.
- removeProductFromCart( )
Removes a specified product from the cart.
- onCartChanged( )
An event handler that is triggered when items are added or removed from a shopping cart.
- getProductOptionsAvailability( )
Gets the availability of a product based on the specified option choices.
- getProductVariants( )
Gets a product's available variants based on the specified product ID and either option choices or variant IDs.