line_item
A cart line.
Available in: cart.items.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
line_item.id |
string | Line key. |
line_item.key |
string | Line key (for /cart/change). |
line_item.title |
string | Product and variant title. |
line_item.product_title |
string | Product title. |
line_item.variant_title |
string | Variant title. |
line_item.quantity |
number | Quantity. |
line_item.sku |
string | SKU. |
line_item.vendor |
string | Vendor. |
line_item.price |
number | Unit price. |
line_item.original_price |
number | Unit price before discounts. |
line_item.final_price |
number | Unit price after discounts. |
line_item.line_price |
number | Line total. |
line_item.original_line_price |
number | Line total before discounts. |
line_item.final_line_price |
number | Line total after discounts. |
line_item.total_discount |
number | Discount on the line. |
line_item.line_level_discount_allocations |
array | Discounts on the line. |
line_item.product |
object | Product (id, title, url, handle, vendor, featured_image). |
line_item.variant |
object | Variant (id, title, image). |
line_item.image |
image | Image. |
line_item.url |
string | Variant URL. |
line_item.properties |
object | Line properties. |
line_item.requires_shipping |
boolean | Ships. |
line_item.gift_card |
boolean | A gift card. |
Example
Section titled “Example”{% for item in cart.items %}{{ item.quantity }} × {{ item.title }} = {{ item.final_line_price | money }}{% endfor %}2 × Embroidered linen abaya - M / Sand = QAR 900.001 × Royal oud gift set = QAR 320.00Compatibility
Section titled “Compatibility”Since theme platform 1.0.
Was this page helpful?

