ADD TO CART

Templates are already set to provide the correct commands. 

Please take note of the following "add-to-cart" commands in case you wish to 

Add to cart Query: 

http://yourdomain/path/to/WMCshop.cgi?action=addtocart&itemid=123

*itemid must be a real "item id" previously added to the inventory database

Also see add-to-cart examples using FORMS


Add Quantity (optional)

If you wish to force a quantity from the add-to-cart page/template simply add a field named "qty". For example you could have a box like this (if blank the value will be 1):

Qty:

code= Qty: <input type="text" name="qty" size="2">


Add Options  (optional)

You can add options with "option1", "option2", etc.

Sample Link
WMCshop.cgi?action=addtocart&itemid=111&qty=1&option1=hello%2b1.00&option2=byebye

(option 1 will add $1.00. Note that "+" is encoded with "%2b")

Sample Form (drop down)

My option 1: My option 2:

code= <p>My option 1: <select size="1" name="option1"><option value="hello + 1.00">hello</option><option value="byebye">byebye</option></select> My option 2: <select size="1" name="option2"><option value="hello + 1.00">hello</option><option value="byebye">byebye</option></select></p>

"PC CONFIGURATOR" - EXAMPLE USING OPTIONS