[LineItems]LineItem Variables[/LineItems]
To display a list of all the line items in a shopping cart or order file, put a [LineItems] context into a template. This is typically in a template that displays the results of a ShowCart, Add, Remove, or Purchase command. You may also put a [LineItems] context inside an [OrderFile] context embedded in any page.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
Try It!
The following tags are available inside a [LineItems] context:
Tag | Description |
---|---|
[LineIndex] |
A number from 1 to the number of line items, indicating this item's index in the list |
[SKU] |
The SKU of this lineitem in the shopping cart |
[Quantity] |
Quantity of this lineitem the visitor wants to purchase |
[Price] |
Price of this lineitem |
[Taxable] |
"T" if this item is taxable, "F" if not |
[CanEmail] |
"T" if this item is electronically deliverable, "F" if not |
[UnitShipCost] |
Price to ship one unit of this item |
[TextA] |
Extra text field to be used for any purpose. Often used to store extra product information, such as "shoe size" or "color". Also used to pass catalog fields such as [title] through to the order file |
[TextB] |
Extra text field to be used for any purpose. Often used to store extra product information, such as "shoe size" or "color". Also used to pass catalog fields such as [title] through to the order file |
[TextC] |
Extra text field to be used for any purpose. Often used to store extra product information, such as "shoe size" or "color". Also used to pass catalog fields such as [title] through to the order file |
[TextD] |
Extra text field to be used for any purpose. Often used to store extra product information, such as "shoe size" or "color". Also used to pass catalog fields such as [title] through to the order file |
[TextE] |
Extra text field to be used for any purpose. Often used to store extra product information, such as "shoe size" or "color". Also used to pass catalog fields such as [title] through to the order file |
[QuantityPrice] |
Computed value of Quantity * Price for this line item. You may calculate any other amounts by using a [Math] context. |