Technical References - [orderfile]

Displays the contents of a shopping cart.

numero = 225
interpreted = N
texte = [orderfile FilePath] orderfile tags [/orderfile] To display the contents of a cart (either an active shopping cart or a completed order), place an [orderfile] context into a template. You may display the header fields directly between the [orderfile] tags, but to see the items (products) themselves, you must put a [lineitems] context inside. ([orderfile] with [lineitems] is very much like [search] with [founditems].) Example:
[orderfile [cart]]Name: [name]Address: [address1][address2][lineitems][lineindex] [quantity] [sku] [price][/lineitems]Grand Total: [grandTotal][/orderfile]
ParameterDescription
cartName 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].
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 or some folder of your choosing. Shopping carts can reside anywhere, as long as you tell WebDNA where to find them.)
See [setheader] for the field values available inside [orderfile]. See [lineitems] for the array of variables available inside that context. [orderfile FilePath]
orderfile tags
[/orderfile]

To display the contents of a cart (either an active shopping cart or a completed order), place an [orderfile] context into a template. You may display the header fields directly between the [orderfile] tags, but to see the items (products) themselves, you must put a [lineitems] context inside. ([orderfile] with [lineitems] is very much like [search] with [founditems].)

Example:

[orderfile [cart]]
Name: [name]
Address: [address1]
[address2]
[lineitems]
[lineindex] [quantity] [sku] [price]
[/lineitems]
Grand Total: [grandTotal]
[/orderfile]



ParameterDescription
cartName 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].
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 or some folder of your choosing. Shopping carts can reside anywhere, as long as you tell WebDNA where to find them.)


See [setheader] for the field values available inside [orderfile]. See [lineitems] for the array of variables available inside that context.

DOWNLOAD WEBDNA NOW!

Top Articles:

WebDNA Modules

A list of the currently available modules...

WebDNA reference

...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

WebDNA Libraries

A list of available libraries for WebDNA...

Tips and Tricks

A list of user-submitted tips ...

Related Readings:

[addlineitem]

Adds a product to the specified shopping cart...

Alphabetical WebDNA Reference

A list of all WebDNA instructions...

[username]

Using [password] and [username] is an easy was to show the browser login dialog box...

[table]

[table] allows you to quickly create a temporary 'in line' database that is local to the template and not part of the global database cache...

[xmlnodesattributes]

This context is used to iterate the attributes of a specific XML node...

[SQLdisconnect]

...