Adds an item to your cart from a product form. The form must contain an input with name="id". If the quantity specified is more than what is available, the promise will be rejected and the cart state will remain unchanged
Clear all cart attributes from Shopify and return the state
Use the POST /cart/clear.js endpoint to set all quantities of all line items in the cart to zero.
Remove the cart note
Use the GET /cart.js endpoint to get the cart as JSON.
Removes an item from the cart using line item key or product id. Returns a promise which fulfills with the updated cart state.
Update cart attributes from Shopify and return the state
The /cart/change.js endpoint changes the quantity and properties object of a cart line item. Only items already in your cart can be changed, and only one line item at a time can be changed.
Update or create the cart note
Generated using TypeDoc
Use the POST /cart/add.js endpoint to add product to cart.
ShopifyAPI: POST /cart/add.js