updateCart( )


Updates a specified cart's properties.

After a cart is updated, call refreshCart() to update the cart's UI elements and trigger the onCartChange() event.

Note: When updating catalog items, options.lineItems.catalogReference is required.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Restaurants - all permissions
Manage eCommerce - Admin Permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

ID of the cart to be updated.


optionsUpdateCartOptions

Available options to use when updating a cart.

Returns
Return Type:Promise<Cart>
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?