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:


Returns the quantity of the line item.


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.


Returns the variant of the line item.


Returns the price of the line item including all line level discount amounts.