line_item
A line in a cart, checkout page, or order, representing the details of a product variant.
Properties
The discount allocations that apply to the line item.
The discount allocations include all order-level discounts that apply to the line item.
The total price of the line item after all discounts are applied.
The value is equal to line_item.final_price multiplied by line_item.quantity.
Format the amount using the money, money_with_currency, or money_without_currency filter.
The unit price of the line item after all discounts are applied.
Format the amount using the money, money_with_currency, or money_without_currency filter.
The fulfillments of the line item.
Whether the variant associated with the line item supports a gift card.
true:Supportsfalse:Does not support
The image of the line item.
The image can come from one of the following sources:
- The image of the variant associated with the line item.
- The featured image of the product associated with the line item, if there's no variant image.
The key of the line item.
The key of a line item is its unique identifier consisting of the following two components, separated by a colon:
- The ID of the variant associated with the line item.
- The ID of the line item.
The discount allocations that apply directly to the line item.
The total amount of all discounts applied to the line item.
You can format the amount using the money, money_with_currency, or money_without_currency filter.
The name-value pairs for each option of the variant associated with the line item.
The combined price of all of the items in a line item, before any discounts have been applied.
The value is equal to line_item.original_price multiplied by line_item.quantity.
You can format the amount using the money, money_with_currency, or money_without_currency filter.
The unit price of the line item, before discounts have been applied.
You can format the amount using the money, money_with_currency, or money_without_currency filter.
The ID of the line item's product.
The custom properties of the line item.
A custom property consists of a key-value pair. Customer inputs can be captured via the following methods and used as values of custom properties:
- A custom
inputelement inside a product form - The Ajax Cart API
The product quantity of the line item.
Whether the variant associated with the line item requires shipping.
true: Requiresfalse: Does not require
The selling plan allocation of the line item. If the line item doesn't have a selling plan allocation, nil is returned.
The SKU of the variant associated with the line item.
The number of items from the line item that have been successfully fulfilled.
Whether the product is taxable.
true: Taxablefalse: Not taxable
The relative URL of the variant associated with the line item.
A URL, which is used to remove the line item from the cart.
The ID of the variant associated with the line item.
The vendor of the product associated with the line item.
The information of a sub-item line in a product bundle.