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_id
line_item.bundle_item_id
line_item.can_remove
line_item.can_update_quantity
line_item.cart_level_total_discount
line_item.cart_line_child_id
line_item.cart_line_id
line_item.denomination_cents
line_item.digital_delivery
line_item.discount_allocations
line_item.error_message
line_item.event_reservation
line_item.file
line_item.final_line_priceLine total after discounts.
line_item.final_line_price_after_all_discounts
line_item.final_priceUnit price after discounts.
line_item.gift_card
line_item.gift_card_details
line_item.grams
line_item.group_product_id
line_item.group_type
line_item.group_variant_id
line_item.idUnique identifier.
line_item.imagePrimary image.
line_item.instructions
line_item.is_bundle_parent
line_item.is_digital
line_item.is_event
line_item.is_gift_card
line_item.is_group_component
line_item.is_group_parent
line_item.is_physical
line_item.is_upsell
line_item.is_upsell_parent
line_item.item_components
line_item.keyNamespaced key.
line_item.line_level_discount_allocations
line_item.line_level_total_discount
line_item.line_priceQuantity × price, after line discounts.
line_item.line_type
line_item.messagePersonal message.
line_item.modifiers
line_item.nameName.
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.parent
line_item.parent_relationship
line_item.pricePrice in the smallest currency unit (paise). Format with money.
line_item.price_adjustment_cents
line_item.product
line_item.product_id
line_item.product_type
line_item.properties
line_item.quantityQuantity.
line_item.recipient_email
line_item.recipient_name
line_item.requires_shippingtrue when physical delivery is needed.
line_item.section_id
line_item.section_name
line_item.sender_name
line_item.skuStock keeping unit.
line_item.source_bundle_id
line_item.source_group_product_id
line_item.source_group_variant_id
line_item.source_product_id
line_item.source_upsell_rule_id
line_item.source_variant_id
line_item.tax_linesTax breakdown lines.
line_item.taxabletrue when taxed.
line_item.titleDisplay title.
line_item.total_discountTotal discount amount on the line.
line_item.unit_price
line_item.unit_price_measurement
line_item.upsell_rule_id
line_item.urlRelative URL of the resource.
line_item.url_to_remove
line_item.valueThe value.
line_item.variant
line_item.variant_id
line_item.vendorVendor / brand name.

Property list is generated from the storefront engine (CartLineItemDrop), so it always matches what your theme can use. Inspect live values with {{ line_item | json }}.