cart
The shopper’s cart.
Available in: Every template.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
cart.item_count |
number | Number of items. |
cart.items |
array of line_item | Lines. |
cart.total_price |
number | Total after discounts (minor units). |
cart.items_subtotal_price |
number | Items total. |
cart.original_total_price |
number | Total before discounts. |
cart.total_discount |
number | Discounts. |
cart.total_weight |
number | Weight in grams. |
cart.note |
string | Order note. |
cart.attributes |
object | Cart attributes. |
cart.currency |
object | Currency. |
cart.requires_shipping |
boolean | Has items that ship. |
cart.cart_level_discount_applications |
array | Order discounts. |
cart.discount_codes |
array | Codes entered (code, applicable). |
cart.free_shipping_threshold |
number | Order total for free shipping, nil when none (Sooquna). |
cart.empty? |
boolean | True when empty. |
Example
Section titled “Example”{{ cart.item_count }} · {{ cart.total_price | money }}3 · QAR 1,220.00Related
Section titled “Related”Compatibility
Section titled “Compatibility”Since theme platform 1.0.
Was this page helpful?

