removeLineItems( )


Removes line items from a cart.

Note: After a cart is updated, call Refresh Cart to update the cart's UI elements and trigger the Cart Updated event.

Method Declaration
Copy
Method Parameters
_idstringRequired

ID of the cart to remove line items from.


lineItemIdsArray<string>Required

IDs of the line items to remove from the cart.

Returns
Return Type:Promise<RemoveLineItemsResponse>
Errors

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

Did this help?