Order Line Item
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
id
Returns the unique id for this line item.
attributes
Returns the attributes selected for the product.
attributes_label
Returns a label for the attributes selected for the product.
bundle_items
Returns the bundle items.
category_path
Returns the category path.
description
Returns the description.
downloads
Returns information about the download for this item.
gift_card_code
Returns the gift card code if the type is gift_card.
gift_card_expiry
Returns the gift card expiry date if the type is gift_card.
gift_card_value
Returns the gift card value if the type is gift_card.
gtin
Returns a GTIN number for the product.
image
Returns the image.
line_discount
Returns the applied line discount.
line_price
Returns the line price.
manufacturer
Returns the manufacturer.
model
Returns the merchant defined model number.
net_price
Returns the net price.
price
Returns the price for this line item.
product
Returns the product associated with this line item.
product_url
Returns the product url.
quantity
Returns the quantity ordered.
rate
Returns the tax rate in decimals.
rate_percentage
Returns the tax rate.
sku
Returns the SKU for this line item.
tax
Returns the line tax.
title
Returns the title or name of the line item.
type
Returns the type, either product, bundle or gift_card.
unit
Returns a unit for the product.