[OrderFile FilePath]OrderFile Tags[/OrderFile]
Displays the contents of a shopping cart or order file.

To display the contents of an order file (either a shopping cart or a completed order), place an [OrderFile] context into a template. You may put a [LineItems] context inside the [OrderFile] context to display each of the line items (products) in the order file.

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

[OrderFile Orders/13490876]
Name: [name]<br>
Address: [address1]<br>
[address2]<br>
Grand Total: [grandTotal]
[/OrderFile]

Parameter Description
cart
Name of the shopping cart file to use. cart=[cart] will look inside the ShoppingCarts folder (a preference value lets you set the path to the shopping carts folder) for the order file named [cart].

Example: [OrderFile cart=[cart]] or [OrderFile cart=1234]
file
(Optional) Path to the shopping cart file. This is used instead of cart when the file is in a different folder (such as the Orders folder or the Problems folder).

Example: [OrderFile file=Orders/13490876] or simply [OrderFile Orders/13490876]
The following variables are available inside an [OrderFile] context: See Purchase and ShowCart