- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
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 Liquid templates via cart.items.
The line_item object has the following attributes:
line_item.title
Returns the title of the line item.
line_item.product
Returns the product of the line item. More info ›
line_item.variant
Returns the variant of the line item. More info ›
line_item.img_url
Returns the relative image URL of the line item.
line_item.url
Returns the relative URL of the line item. The relative URL does not include your store's root URL.
line_item.quantity
Returns the quantity of the line item.
line_item.price
Returns the price of the line item's variant.
line_item.original_price
Returns the original price of the line item before discounts were applied.
line_item.line_price
Returns the combined price of all the items in the line_item. This is equal to line_item.price times line_item.quantity.
line_item.original_line_price
Returns the original price of the line item before discounts were applied.
line_item.image_url
Returns the image URL of the line item.
line_item.final_line_price
Returns the line total after discounts have been applied. Use one of the money filters to return the value in a monetary format.
line_item.variant_id
Returns the ID of the line item's variant.
line_item.variant_title
Returns the title of the line item's variant.
line_item.variant_name
Returns the name of the line item's variant.
line_item.product_name
Returns the name of the line item's product.
line_item.sku
Returns the SKU of the line item's variant.
line_item.taxable
Returns true if taxes are charged for the line item, or false if they are not.
line_item.is_available
Returns true if the line item is available for purchase, or false if it is not.
line_item.returned_quantity
Returns the quantity of the line item that has been returned.
line_item.fulfillment
Returns the fulfillment of the line item, including tracking details.
line_item.line_item_group
Returns the group that the line item belongs to.