- Searches, then creates a new, unique shopping cart token and searches a database after substituting [cart] tags. Deprecated is no longer neeeded because [cart] automatically generates a new cart number when none is specified.
To create a new shopping cart token, send WebDNA a NewCart command with the name of the template file you want to display. Whenever WebDNA receives a NewCart command, it immediately creates a unique cart number, opens the specified file, looks for and interprets any [xxx] tags, and displays the results to the visiting web browser.
- Tip: This command is obsolete and is provided for backward-compatiblity only. Instead, use an embedded [Search] context. WebDNA's "SmartCart" feature automatically creates a shopping cart token if it detects a [cart] tag in any page you display without explicitly sending the NewCart command. Consequently, simply linking to a page with [cart] tags will work correctly.
Example (normally you would link to a URL or form containing the following information):