Shipping: A units value
line for shipping () or
()
can be added to any of the scripts below if a shipping charge is required for the product.
In the checkbox example below, three mandatory
lines of code are required. The checkbox line (qty), the product line that sends the value
that is shown under Product in the cart, and the price field line.
<input type="hidden" name="product4" value="Pine Tree Box">
<input type="hidden" name="price4" value="3.00">
<input type="checkbox" name="qty4" value="1"> Pine Tree Box
CHECK BOX
Pine Tree Box
Results
Product
Quantity
Price
Amount
Pine Tree Box
3.00
3.00
==========================================
Pine Tree Box
Oak Tree Box
Cedar Tree Box
<input type="hidden" name="product4" value="Pine Tree Box">
<input type="checkbox" name="qty4" value="1">Pine Tree Box
<input type="hidden" name="price4" value="3.00">
<input type="hidden" name="product5" value="Oak
Tree Box">
<input type="checkbox" name="qty5" value="1">Oak Tree Box
<input type="hidden" name="price5" value="4.00">
<input type="hidden" name="product6" value="Cedar
Tree Box">
<input type="checkbox" name="qty6" value="1">Cedar Tree Box
<input type="hidden" name="price6" value="5.00">