BatchAdd.aspx
Previous  Top  Next

The soul purpose of this page is to use the Category value passed as a URL parameter to get all the relevant product information from the database and add the item/s to the cart, and then the user is redirected to the cart display page (covered later).

For this page follow the same procedure as you just did for AddFromDB.aspx except for the following changes:

The ParamName should be "CatID"
The SelectorField should be "Category"

The Field Mappings should be:

·Cart Field "ID" to get it's value from Database Field "PartNo"  
·Cart Field "Description" to get it's value from Database Field "Description"  
·Cart Field "RawCost" to get it's value from Database Field "Price"  
·Cart Field "Quantity" gets a literal value of 1  
 
Checking the IsLiteralValue checkbox and typing the value into the value textbox is how to define a literal value for the Quantity field.  
 
Next: The Cart Display Page