Adds catalog line items to a cart.
After a cart is updated, call refreshCart()
to update the cart's UI elements and trigger the onCartChange()
event.
Note: When adding catalog items, options.lineItems.catalogReference
is required.
Cart ID.
Items to be added to cart.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.