line_item
A line_item
represents a single line in the shopping cart. There is one line item for each distinct product variant in the cart. The line_item
object can be accessed in all JSON templates via cart.items
, in notification email templates via line_items
, on the order status page of the checkout, as well as in apps such as Order Printer.
The line_item object has the following attributes:
line_item.quantity
Returns the quantity of the line item.
line_item.title
Returns the title of the line item. line_item
.title combines both the line item's product.title
and the line item's variant.title
, separated by a hyphen.
line_item.variant
Returns the variant of the line item.
line_item.final_price
Returns the price of the line item including all line level discount amounts.
Updated about 3 years ago