The line item object

How to access it

  • Access an array of line items using {{ order.line_items }} whenever an order object is available

What it contains

  • Every property from the Shopify API
  • The related product object: {{ line_item.product }} 
  • The related variant object: {{ line_item.variant }} 
  • An array of properties, that also supports lookups by attribute name: {% for prop in line_item.properties %}{% if prop.name == "Delivery window" %}{{ prop.value }}{% endif %}{% endfor %}, or {{ line_item.properties["Delivery window"] }} 
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.