- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
updateCarts - Cart Module Reference
This documentation provides a reference to the updateCarts
method. This belongs to the Cart Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
updateCarts(data): Promise<CartDTO[]>#
This method updates existing carts.
Example#
Parameters#
data
UpdateCartDTO[]The attributes to update in the carts.
data
UpdateCartDTO[]Returns#
Promise
Promise<CartDTO[]>The updated carts.
Promise
Promise<CartDTO[]>updateCarts(cartId, data, sharedContext?): Promise<CartDTO>#
This method updates an existing cart.
Example#
Parameters#
cartId
stringThe cart's ID.
The attributes to update in the cart data.
Returns#
Promise
Promise<CartDTO>The updated cart.
Promise
Promise<CartDTO>updateCarts(selector, data, sharedContext?): Promise<CartDTO[]>#
This method updates existing carts matching the specified filters.
Example#
Parameters#
selector
Partial<CartDTO>The filters that specify which carts to update.
selector
Partial<CartDTO>The attributes to update in the carts.
Returns#
Promise
Promise<CartDTO[]>The updated carts.
Promise
Promise<CartDTO[]>Was this page helpful?