Entities
Cart
Cart entity - components, queries, links, and related actions
Your storefront encounters the Cart entity when a visitor adds products to their shopping session. A Cart holds summary information such as the total item count and cost breakdowns. Individual line items are represented as separate CartItem entities linked from the Cart.
Components
Base
Cost
Queries
- GetCurrentCartQuery - Retrieve the current cart for the customer session.
Links
- CartItemsLink
CartItemmulti- All line items in the cart.
Related actions
- CartAddItemsAction - Add line items to the current cart.
- CartRemoveItemsAction - Remove line items from the cart by their IDs.
- CartUpdateItemsAction - Update quantity or custom fields of existing line items.
- GetCheckoutUrlAction - Get the checkout URL to redirect the customer to the external checkout page.
Related Entities
- Product - Products whose variants can be added to the cart.
- ProductVariant - The purchasable SKUs added to the cart as line items.