updateCurrentCartLineItemQuantity( )


Updates the quantity of 1 or more line items in the current site visitor's cart.

This method is only for updating the quantity of line items. To entirely remove a line item from the current cart, use the Remove Line Items From Current Cart method. To add a new line item to the current cart, use the Add To Current Cart method.

This method checks the amount of stock remaining for this line item. If the specified quantity is greater than the remaining stock, then the quantity returned in the response is the total amount of remaining stock.

Notes:

Method Declaration
Copy
Method Parameters
lineItemsArray<LineItemQuantityUpdate>Required

Line item IDs and their new quantity.

Returns
Return Type:Promise<UpdateLineItemsQuantityResponse>
Errors

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

Did this help?