Skip to content

cart

The visitor’s cart. Available globally on every page.

Example

{{ cart.item_count }} items — {{ cart.total_price | money }}

Output:

3 items — ₹4,297.00

Properties

PropertyDescription
cart.amount_dueCurrency amount for amount due, in the store currency’s minor unit unless the object reference states otherwise.
cart.attributesCustom cart attributes.
cart.cart_idIdentifier for the related cart record, or nil/empty when unavailable.
cart.cart_level_discount_applicationsBuyer-visible cart_level_discount_applications value for this cart.
cart.checkout_charge_amountCurrency amount for checkout charge amount, in the store currency’s minor unit unless the object reference states otherwise.
cart.checkout_totalBuyer-visible checkout_total value for this cart.
cart.currencyCurrency (ISO code or object).
cart.discount_applicationsDiscounts applied.
cart.duties_includedBuyer-visible duties_included value for this cart.
cart.emptyBuyer-visible empty value for this cart.
cart.empty?Boolean predicate for empty on this cart.
cart.gift_card_applied_amountCurrency amount for gift card applied amount, in the store currency’s minor unit unless the object reference states otherwise.
cart.has_issuestrue when this cart has issues.
cart.has_issues?Boolean predicate for has_issues on this cart.
cart.idUnique identifier.
cart.issuesBuyer-visible issues value for this cart.
cart.item_countTotal quantity across all lines.
cart.itemsThe line items.
cart.items_subtotal_priceSubtotal before cart-level discounts.
cart.line_countNumber of line records visible in this context.
cart.noteCart note from the buyer.
cart.original_total_priceCurrency amount for original total price, in the store currency’s minor unit unless the object reference states otherwise.
cart.out_of_zone_tax_adjustmentBuyer-visible out_of_zone_tax_adjustment value for this cart.
cart.requires_shippingtrue when physical delivery is needed.
cart.store_credit_applied_amountCurrency amount for store credit applied amount, in the store currency’s minor unit unless the object reference states otherwise.
cart.tax_displayBuyer-visible tax_display value for this cart.
cart.tax_linesTax breakdown lines.
cart.taxes_includedBuyer-visible taxes_included value for this cart.
cart.total_discountTotal discount amount on the line.
cart.total_priceTotal after discounts.
cart.total_weightTotal 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.