onCartUpdated( )


An event that triggers when a cart is updated.

The onCartUpdated() event handler runs when a cart is updated. The received CartUpdated object contains information about the cart that was updated and event metadata.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventCartUpdated

Information about the cart that was updated and event metadata.

An event fired when a cart is updated
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?