Liquid Template Variables - line item: Difference between revisions

From Spiffy Stores Knowledge Base
Jump to: navigation, search
Admin (talk | contribs)
No edit summary
Admin (talk | contribs)
Line 14: Line 14:


== <code>line_item.id</code> ==
== <code>line_item.id</code> ==
Returns the unique internal id of the line item.
This is normally only for internal usage.

Revision as of 16:26, 12 September 2008

A line item represents a single line in the shopping cart.

There is one line item for each distinct product variant being purchased, regardless of the quantity of that variant in the cart. It is important to include the line item's quantity whenever displaying the item to the user. Line items can be accessed from any theme or email template which makes a cart or order object available.

Line items used in the following theme and email templates:

  • cart.liquid
  • Order Confirmation
  • New Order Notification
  • New Order Notification (mobile)
  • Shipping confirmation
  • Shipping update
  • Additional Content & Scripts

line_item.id

Returns the unique internal id of the line item.

This is normally only for internal usage.