ShowCart?db=xx.db&template=xx.tpl&cart=[cart]&options=xx

Displays/Modifies the contents of a shopping cart order file.

To display a shopping cart full of items (or update some header or lineitem information in the cart), send WebCatalog a ShowCart command. WebCatalog looks for any new values of header fields in the form and sets the corresponding fields in the cart. It also looks for any numbered lineitem information, such as "quantity3=39" and modifies the corresponding line item values in the cart. See Purchase and Add

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

http://www.yourserver.com/WebCatalog/ShoppingCart.tpl?command=ShowCart&cart=123&db=catalog.txt

Try It!

You may set any of the same variables as during a Purchase command by putting named form variables into the form. Some are optional, and any you do not explicitly set will remain unchanged from their previous values obtained from Add or ShowCart commands. Any formulas you have defined will be applied and calculated before showing the contents of the cart.

Note: You may force the visitor to enter something into a field by using the RequiredFields parameter in the URL. Setting RequiredFields=field1+field2+field3 will display an error message if the visitor forgets to enter some text into any of those 3 fields. RequiredFields works for all commands, not just ShowCart.

In addition to the values you may set when displaying the cart, you may also display the following pre-calculated values:
Value  Description

GrandTotal

Calculated final purchase cost, based on price of all lineitems, quantites, base shipping cost, unit shipping cost, and taxRate

SubTotal

Total cost of all items, before shipping and tax

TaxableTotal

Total cost of all items that are marked as taxable

TaxTotal

Tax on taxable items

ShippingTotal

Total cost of shipping based on unitShipCost of all items and base shipping charge

NumLineItems

Number of line items in the order