Remove?db=DatabaseName&cart=[cart]&sku=xx
Removes a product from the specified shopping cart.

To remove products fram a visitor's shopping cart, click a URL containing the Remove command. Whenever WebDNA receives a Remove command, it opens the shopping cart file and removes the product (identified by its SKU) from the LineItems in the shopping cart. Also see Add, Clear, ShowCart, and Purchase.

Example (normally you would link to a URL or form containing the following information):

http://yourserver.com/xx.tpl?command=Remove&db=SomeDatabase.db&sku=1234&cart=5678

Shopping Cart file "5678" opens, and the first line item found with the correct SKU is deleted. The page sent back to the browser will be xx.tpl, which typically contains a [LineItems] loop to display the current items in the cart (after the removal).

Here are the parameters to the Remove command:
Parameter Description
db
Product database containing the SKU, price, and other information.
sku
Uniquely identifies the product to remove from the cart.
cart
Affected shopping cart file.
template
Template of HTML displayed after the sku is removed from the cart. Typically this is the same shopping cart template used for adding items to the cart -- so the visitor can see the item has been removed.