Skip to content

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.00

Properties

PropertyDescription
line_item.bundle_idIdentifier for the related bundle record, or nil/empty when unavailable.
line_item.bundle_item_idIdentifier for the related bundle item record, or nil/empty when unavailable.
line_item.cart_line_child_idIdentifier for the related cart line child record, or nil/empty when unavailable.
line_item.cart_line_idIdentifier for the related cart line record, or nil/empty when unavailable.
line_item.digital_deliveryBuyer-visible digital_delivery value for this line item.
line_item.discount_allocationsBuyer-visible discount_allocations value for this line item.
line_item.error_messageBuyer-visible error message.
line_item.event_reservationBuyer-visible event_reservation value for this line item.
line_item.final_line_priceLine total after discounts.
line_item.final_line_price_after_all_discountsCurrency amount for final line price after all discounts, in the store currency’s minor unit unless the object reference states otherwise.
line_item.final_priceUnit price after discounts.
line_item.gift_cardBuyer-visible gift_card value for this line item.
line_item.gift_card_detailsBuyer-visible gift_card_details value for this line item.
line_item.gramsBuyer-visible grams value for this line item.
line_item.group_product_idIdentifier for the related group product record, or nil/empty when unavailable.
line_item.group_typePublic group type value.
line_item.group_variant_idIdentifier for the related group variant record, or nil/empty when unavailable.
line_item.idUnique identifier.
line_item.imagePrimary image.
line_item.instructionsBuyer-visible instructions value for this line item.
line_item.is_bundle_parenttrue 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_digitaltrue when this line item is digital.
line_item.is_digital?Boolean predicate for is_digital on this line item.
line_item.is_eventtrue when this line item is event.
line_item.is_event?Boolean predicate for is_event on this line item.
line_item.is_gift_cardtrue 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_componenttrue 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_parenttrue 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_physicaltrue when this line item is physical.
line_item.is_physical?Boolean predicate for is_physical on this line item.
line_item.is_upselltrue when this line item is upsell.
line_item.is_upsell_parenttrue 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_componentsBuyer-visible item_components value for this line item.
line_item.keyPublic key or identifier within the parent object.
line_item.line_level_discount_allocationsBuyer-visible line_level_discount_allocations value for this line item.
line_item.line_level_total_discountCurrency amount for line level total discount, in the store currency’s minor unit unless the object reference states otherwise.
line_item.line_priceQuantity × price, after line discounts.
line_item.line_typePublic line type value.
line_item.messageBuyer-visible message.
line_item.options_with_valuesOptions with their values and selection state.
line_item.original_line_priceQuantity × original price.
line_item.original_priceUnit price before discounts.
line_item.pricePrice in the smallest currency unit (for example paise for INR). Format with money.
line_item.productBuyer-visible product value for this line item.
line_item.product_idIdentifier for the related product record, or nil/empty when unavailable.
line_item.product_typePublic product type value.
line_item.propertiesBuyer-visible properties value for this line item.
line_item.quantityQuantity.
line_item.requires_shippingtrue when physical delivery is needed.
line_item.section_idIdentifier for the related section record, or nil/empty when unavailable.
line_item.section_nameBuyer-visible section name.
line_item.skuStock keeping unit.
line_item.source_bundle_idIdentifier for the related source bundle record, or nil/empty when unavailable.
line_item.source_group_product_idIdentifier for the related source group product record, or nil/empty when unavailable.
line_item.source_group_variant_idIdentifier for the related source group variant record, or nil/empty when unavailable.
line_item.source_product_idIdentifier for the related source product record, or nil/empty when unavailable.
line_item.source_upsell_rule_idIdentifier for the related source upsell rule record, or nil/empty when unavailable.
line_item.source_variant_idIdentifier for the related source variant record, or nil/empty when unavailable.
line_item.stock_issueBuyer-visible stock_issue value for this line item.
line_item.taxabletrue when taxed.
line_item.titleDisplay title.
line_item.total_discountTotal discount amount on the line.
line_item.unit_priceCurrency amount for unit price, in the store currency’s minor unit unless the object reference states otherwise.
line_item.unit_price_measurementBuyer-visible unit_price_measurement value for this line item.
line_item.upsell_rule_idIdentifier for the related upsell rule record, or nil/empty when unavailable.
line_item.urlRelative URL of the resource.
line_item.url_to_removeBuyer-visible url_to_remove value for this line item.
line_item.variantBuyer-visible variant value for this line item.
line_item.variant_idIdentifier for the related variant record, or nil/empty when unavailable.
line_item.vendorVendor / 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.