Cart

Cart Actions in this SDK allow you to manage and interact with the app’s shopping cart directly from your custom web components. Using these actions, you can add or remove products, update quantities and trigger the checkout flow — all while staying fully synced with the app’s native state.

The cart actions available are as follows

ActionPurposeDocument Link
Add to CartAdds a product to the cart with the specified quantityAdd to Cart
Remove from CartRemoved the product from cartRemove from Cart
Update Line Item QuantityUpdate the quantity of specific item added to the cartUpdate Line Item Quantity
Apply DiscountApply Discount on cart page of the appApply Discount
Enable Checkout ButtonTo enable the checkout button on the cart pageEnable Checkout Button
Disable Checkout ButtonTo disable the checkout button on the cart pageDisable Checkout Button