OrderLineItem
The order_line_item object describes a single line item in an order, such as a purchased product or service.
Usage Example
{%- comment -%} List all line items in an order {%- endcomment -%}
<ul>
{% for item in order.items %}
<li>{{ item.title }} × {{ item.quantity }} ({{ item.price }})</li>
{% endfor %}
</ul>Properties
type
Returns the type, either product, bundle or gift_card.
model
Returns the merchant defined model number.
image
Returns the image.
category_path
Returns the category path.
line_discount
Returns the applied line discount.
price
Returns the unit price.
line_price
Returns the line price.
net_price
Returns the net price.
tax
Returns the line tax.
quantity
Returns the quantity.
title
Returns the title.
description
Returns the description.
attributes_label
Returns a label for the attributes selected for the product.
attributes
Returns the attributes selected for the product.
customizations
Returns the customizations applied to this cart line item.
gtin
Returns a GTIN number for the product.
manufacturer
Returns the manufacturer.
unit
Returns a unit for the product.
product_url
Returns the product url.
bundle_items
Returns the bundle items.
gift_card_code
Returns the gift card code if the type is gift_card.
gift_card_value
Returns the gift card value if the type is gift_card.
gift_card_expiry
Returns the gift card expiry date if the type is gift_card.
product
Returns the associated product if it’s available at the store.
rate
Returns the tax rate in decimals.
rate_percentage
Returns the tax rate.
downloads
Returns information about the download. for this item