NewCart

Creates a new unique shopping cart token and displays an HTML text file after substituting [cart] tags.

To create a new shopping cart token, send WebCatalog a NewCart command with the name of the template file you want to display. Whenever WebCatalog 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-compatibility only. Use an embedded [Search] context instead. WebCatalog's "SmartCart" feature will automatically create a shopping cart token if it detects a [cart] tag in any page you display without explicitly sending the NewCart command. So 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):

http://yourserver.com/xx.tpl?command=NewCart

Try It!

Here are some other ways to send the same command:
HTML Source Description
 <a href="/WebCatalog/WebCatalog.acgi
?command=NewCart&template=xx.tpl">
Hyperlink to WebCatalog CGI
<form method="POST" action="/WebCatalog/WebCatalog.acgi">
<input type=hidden name=command value="NewCart">
<input type=hidden name=template value="xx.tpl">
</form>
Form-based command to CGI
(notice you must specify a template)