- Removes all products from the specified shopping cart.
To remove all products from a visitor's shopping cart, click
a URL containing the Clear command. Whenever WebDNA receives
a Clear command, it opens the shopping cart file and removes all
LineItems from the shopping
cart. The template displayed after the Clear command can contain
any header fields from the order file (cart), and can contain
a [LineItems] loop (but of course no line items ever appear because
they are all gone).
Example (normally you would link to a URL or form containing
the following information):
Shopping Cart file "5678" opens, and all line items
are removed from the list. The page sent back to the browser is
xx.tpl, which typically contains a message confirming the shopping
cart is empty.
Here are the parameters to the Clear command:
|Shopping cart file to be cleared
|Template of HTML to be displayed after clearing