Updates a specified cart's properties.
The updateCart()
function returns a Promise that resolves when the specified cart's properties are updated.
Note: When updating catalog items, options.lineItems.catalogReference
is required.
function updateCart(_id: string, options: UpdateCartOptions): Promise<Cart>;
ID of the cart to be updated.
Available options to use when updating a cart.
import { cart } from "@wix/ecom";
async function updateCart(id, options) {
const response = await cart.updateCart(id, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.