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 | Currency amount for amount due, in the store currency’s minor unit unless the object reference states otherwise. |
cart.attributes | Custom cart attributes. |
cart.cart_id | Identifier for the related cart record, or nil/empty when unavailable. |
cart.cart_level_discount_applications | Buyer-visible cart_level_discount_applications value for this cart. |
cart.checkout_charge_amount | Currency amount for checkout charge amount, in the store currency’s minor unit unless the object reference states otherwise. |
cart.checkout_total | Buyer-visible checkout_total value for this cart. |
cart.currency | Currency (ISO code or object). |
cart.discount_applications | Discounts applied. |
cart.duties_included | Buyer-visible duties_included value for this cart. |
cart.empty | Buyer-visible empty value for this cart. |
cart.empty? | Boolean predicate for empty on this cart. |
cart.gift_card_applied_amount | Currency amount for gift card applied amount, in the store currency’s minor unit unless the object reference states otherwise. |
cart.has_issues | true when this cart has issues. |
cart.has_issues? | Boolean predicate for has_issues on this cart. |
cart.id | Unique identifier. |
cart.issues | Buyer-visible issues value for this cart. |
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 | Number of line records visible in this context. |
cart.note | Cart note from the buyer. |
cart.original_total_price | Currency amount for original total price, in the store currency’s minor unit unless the object reference states otherwise. |
cart.out_of_zone_tax_adjustment | Buyer-visible out_of_zone_tax_adjustment value for this cart. |
cart.requires_shipping | true when physical delivery is needed. |
cart.store_credit_applied_amount | Currency amount for store credit applied amount, in the store currency’s minor unit unless the object reference states otherwise. |
cart.tax_display | Buyer-visible tax_display value for this cart. |
cart.tax_lines | Tax breakdown lines. |
cart.taxes_included | Buyer-visible taxes_included value for this cart. |
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. Use {{ cart | json }} only as a curated debug snapshot; it can omit lazy or otherwise public properties.