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 displaying 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):
The following tags are available inside a [LineItems] context:
Tag | Description |
---|---|
[LineIndex]
|
A number from 1 to the maximum number of line items, indicating this item's index position in the list. |
[SKU]
|
The SKU of this line item in the shopping cart. |
[Quantity]
|
Quantity of this line item the visitor wants to purchase. |
[Price]
|
Price of this line item. |
[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. |
|
No longer available. Use [math][quantity]*[price][/math] instead |