π«Line item object
Last updated
Was this helpful?
These Shopify REST-backed Liquid objects are legacy. The product and variant Liquid objects no longer work, and Shopify is phasing out the REST Admin API that these objects depend on. Use GraphQL for new work; see the Shopify REST Admin API notice and migration guides.
Access an array of line items using {{ order.line_items }} whenever an order object is available
Every property from Orders.line_items in the Shopify REST Admin 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"] }}
Last updated
Was this helpful?
Was this helpful?