line_item
A line in the cart: a variant, its quantity, and its pricing.
Example
{{ item.quantity }} × {{ item.product.title }} = {{ item.line_price | money }}Output:
2 × Sandalwood Candle = ₹2,998.00Properties
| Property | Description |
|---|---|
line_item.bundle_id | Identifier for the related bundle record, or nil/empty when unavailable. |
line_item.bundle_item_id | Identifier for the related bundle item record, or nil/empty when unavailable. |
line_item.cart_line_child_id | Identifier for the related cart line child record, or nil/empty when unavailable. |
line_item.cart_line_id | Identifier for the related cart line record, or nil/empty when unavailable. |
line_item.digital_delivery | Buyer-visible digital_delivery value for this line item. |
line_item.discount_allocations | Buyer-visible discount_allocations value for this line item. |
line_item.error_message | Buyer-visible error message. |
line_item.event_reservation | Buyer-visible event_reservation value for this line item. |
line_item.final_line_price | Line total after discounts. |
line_item.final_line_price_after_all_discounts | Currency amount for final line price after all discounts, in the store currency’s minor unit unless the object reference states otherwise. |
line_item.final_price | Unit price after discounts. |
line_item.gift_card | Buyer-visible gift_card value for this line item. |
line_item.gift_card_details | Buyer-visible gift_card_details value for this line item. |
line_item.grams | Buyer-visible grams value for this line item. |
line_item.group_product_id | Identifier for the related group product record, or nil/empty when unavailable. |
line_item.group_type | Public group type value. |
line_item.group_variant_id | Identifier for the related group variant record, or nil/empty when unavailable. |
line_item.id | Unique identifier. |
line_item.image | Primary image. |
line_item.instructions | Buyer-visible instructions value for this line item. |
line_item.is_bundle_parent | true when this line item is bundle parent. |
line_item.is_bundle_parent? | Boolean predicate for is_bundle_parent on this line item. |
line_item.is_digital | true when this line item is digital. |
line_item.is_digital? | Boolean predicate for is_digital on this line item. |
line_item.is_event | true when this line item is event. |
line_item.is_event? | Boolean predicate for is_event on this line item. |
line_item.is_gift_card | true when this line item is gift card. |
line_item.is_gift_card? | Boolean predicate for is_gift_card on this line item. |
line_item.is_group_component | true when this line item is group component. |
line_item.is_group_component? | Boolean predicate for is_group_component on this line item. |
line_item.is_group_parent | true when this line item is group parent. |
line_item.is_group_parent? | Boolean predicate for is_group_parent on this line item. |
line_item.is_physical | true when this line item is physical. |
line_item.is_physical? | Boolean predicate for is_physical on this line item. |
line_item.is_upsell | true when this line item is upsell. |
line_item.is_upsell_parent | true when this line item is upsell parent. |
line_item.is_upsell_parent? | Boolean predicate for is_upsell_parent on this line item. |
line_item.is_upsell? | Boolean predicate for is_upsell on this line item. |
line_item.item_components | Buyer-visible item_components value for this line item. |
line_item.key | Public key or identifier within the parent object. |
line_item.line_level_discount_allocations | Buyer-visible line_level_discount_allocations value for this line item. |
line_item.line_level_total_discount | Currency amount for line level total discount, in the store currency’s minor unit unless the object reference states otherwise. |
line_item.line_price | Quantity × price, after line discounts. |
line_item.line_type | Public line type value. |
line_item.message | Buyer-visible message. |
line_item.options_with_values | Options with their values and selection state. |
line_item.original_line_price | Quantity × original price. |
line_item.original_price | Unit price before discounts. |
line_item.price | Price in the smallest currency unit (for example paise for INR). Format with money. |
line_item.product | Buyer-visible product value for this line item. |
line_item.product_id | Identifier for the related product record, or nil/empty when unavailable. |
line_item.product_type | Public product type value. |
line_item.properties | Buyer-visible properties value for this line item. |
line_item.quantity | Quantity. |
line_item.requires_shipping | true when physical delivery is needed. |
line_item.section_id | Identifier for the related section record, or nil/empty when unavailable. |
line_item.section_name | Buyer-visible section name. |
line_item.sku | Stock keeping unit. |
line_item.source_bundle_id | Identifier for the related source bundle record, or nil/empty when unavailable. |
line_item.source_group_product_id | Identifier for the related source group product record, or nil/empty when unavailable. |
line_item.source_group_variant_id | Identifier for the related source group variant record, or nil/empty when unavailable. |
line_item.source_product_id | Identifier for the related source product record, or nil/empty when unavailable. |
line_item.source_upsell_rule_id | Identifier for the related source upsell rule record, or nil/empty when unavailable. |
line_item.source_variant_id | Identifier for the related source variant record, or nil/empty when unavailable. |
line_item.stock_issue | Buyer-visible stock_issue value for this line item. |
line_item.taxable | true when taxed. |
line_item.title | Display title. |
line_item.total_discount | Total discount amount on the line. |
line_item.unit_price | Currency amount for unit price, in the store currency’s minor unit unless the object reference states otherwise. |
line_item.unit_price_measurement | Buyer-visible unit_price_measurement value for this line item. |
line_item.upsell_rule_id | Identifier for the related upsell rule record, or nil/empty when unavailable. |
line_item.url | Relative URL of the resource. |
line_item.url_to_remove | Buyer-visible url_to_remove value for this line item. |
line_item.variant | Buyer-visible variant value for this line item. |
line_item.variant_id | Identifier for the related variant record, or nil/empty when unavailable. |
line_item.vendor | Vendor / brand name. |
Property list is generated from the storefront engine (CartLineItemDrop), so it always matches what your theme can use. Use {{ line_item | json }} only as a curated debug snapshot; it can omit lazy or otherwise public properties.