cart
The visitor’s cart. Available globally on every page.
Example
{{ cart.item_count }} items — {{ cart.total_price | money }}Output:
3 items — ₹4,297.00Properties
| Property | Description |
|---|---|
cart.amount_due | — |
cart.api_payload | — |
cart.attributes | Custom cart attributes. |
cart.cart_id | — |
cart.cart_level_discount_applications | — |
cart.checkout_charge_amount | — |
cart.checkout_total | — |
cart.currency | Currency (ISO code or object). |
cart.discount_applications | Discounts applied. |
cart.duties_included | — |
cart.empty | — |
cart.gift_card_applied_amount | — |
cart.id | Unique identifier. |
cart.item_count | Total quantity across all lines. |
cart.items | The line items. |
cart.items_subtotal_price | Subtotal before cart-level discounts. |
cart.line_count | — |
cart.note | Cart note from the buyer. |
cart.original_total_price | — |
cart.requires_shipping | true when physical delivery is needed. |
cart.store_credit_applied_amount | — |
cart.tax_lines | Tax breakdown lines. |
cart.taxes_included | — |
cart.total_discount | Total discount amount on the line. |
cart.total_price | Total after discounts. |
cart.total_weight | Total weight of the cart. |
Property list is generated from the storefront engine (CartDrop), so it always matches what your theme can use. Inspect live values with {{ cart | json }}.