updateLineItems - Cart Module Reference
This documentation provides a reference to the updateLineItems
method. This belongs to the Cart Module.
updateLineItems(data): Promise<CartLineItemDTO[]>
This method updates existing line items.
Example
Parameters
A list of objects, each holding the filters that specify which items
to update, and the attributes to update in the items.
Returns
The updated line items.
updateLineItems(selector, data, sharedContext?): Promise<CartLineItemDTO[]>
This method updates existing line items matching the specified filters.
Example
Parameters
The filters that specify which line items to update.
The attributes to update in the line items.
Returns
The updated line items.
updateLineItems(lineId, data, sharedContext?): Promise<CartLineItemDTO>
This method updates an existing line item.
Example
Parameters
lineId
stringRequiredThe line item's ID.
The attributes to update in the line item.
Returns
The updated line item.
Was this section helpful?