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_due
cart.api_payload
cart.attributesCustom cart attributes.
cart.cart_id
cart.cart_level_discount_applications
cart.checkout_charge_amount
cart.checkout_total
cart.currencyCurrency (ISO code or object).
cart.discount_applicationsDiscounts applied.
cart.duties_included
cart.empty
cart.gift_card_applied_amount
cart.idUnique identifier.
cart.item_countTotal quantity across all lines.
cart.itemsThe line items.
cart.items_subtotal_priceSubtotal before cart-level discounts.
cart.line_count
cart.noteCart note from the buyer.
cart.original_total_price
cart.requires_shippingtrue when physical delivery is needed.
cart.store_credit_applied_amount
cart.tax_linesTax breakdown lines.
cart.taxes_included
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. Inspect live values with {{ cart | json }}.