Clear Command

Clear?cart=[cart]

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):

http://yourserver.com/xx.tpl?command=Clear&cart=5678

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:
Parameter Description

cart

Shopping cart file to be cleared

template

Template of HTML to be displayed after clearing

User Contributed Notes
ClearCommand  

Copyright © 2008 WebDNA Software Corporation, Inc.