[ Home ] [ All in one ] [ Auction Payments ] [ Buy Now Links ] [ Check boxes ] [ Collecting cash ] [ ges_tidbits ] [ Host Reviews ] [ Hyperlinks ] [ Tags, Fields & Tips ] [ Misc Examples ] [ Multiproducts ] [ Multiproductform ] [ The New Button Tag ] [ New Window ] [ Payment Services ] [ php_mysql ] [ Posting Messages ] [ productpr ] [ Q&A from the forum ] [ Unsecure Payments ] [ Vouchers ] [ Shipping ]


productpr & product [ ]

productpr is unique in that you can have multiple products, with different prices, and shipping charges for each product. In addition, if you have multiple attributes for similar products as illustrated below, you can use product[ ] to append any number of attributes selected to the product in the cart as in the example below.

Required Tags/Fields: return, userid, productpr, price Optional: units, product[]

Product Quantity Price Amount
2 inch Candle, Amaretto Scented 2.98 2.98

All prices are in US Dollars Subtotal 2.98
Shipping 2.00

TOTAL 4.98
You can add a shipping cost to each product by adding :nnn (units=[the value depending on which shipping option you use]) after the price as illustrated in the first option. In this instance since I have selected option 3 in admin>cart set-up with .01 (1¢) entered as the value, the 200 in the first option value multiplies the .01 and gives the candle a $2.00 shipping charge in the cart. I wouldn't buy that one as I can get a 4" candle for the same price with no shipping added. Since only one productpr can be selected at a time, the option value of product[] does not need a numerical designation (i.e. product1[]).

<form method="POST" action="http://www.aitsafe.com/cf/add.cfm">
<input type=
"hidden" name="return" value="www.yourdomain.com/yourpage.htm">
<input type=
"hidden" name="userid" value="1234567">


<select size=
"1" name="productpr">
<option value=
"2 inch Candle:2.98:200">2 inch Candle $2.98</option>
<option value=
"4 inch Candle:4.98">4 inch Candle $4.98</option>
<option value=
"6 inch Candle:6.98">6 inch Candle $6.98</option>
<option value=
"8 inch Candle:8.98">8 inch Candle $8.98</option>
<option value=
"10 inch Candle:10.98">10 inch Candle $10.98</option>
</select>



<select size=
"1" name="product[]">
<option value=
", Amaretto Scented">Amaretto Scented</option>
<option value=
", Apple Scented">Apple Scented</option>
<option value=
", Lemon Scented">Lemon Scented</option>
<option value=
", Vanilla Scented">Vanilla Scented</option>
<option value=
", Banana Scented">Banana Scented</option>
<option value=
", Bayberry Scented">Bayberry Scented</option>
<option value=
", Rose Scented">Rose Scented</option>
</select>



<input type=
"submit" value="Buy now!"><input type="reset" value="Reset">


</form>


back.gif (368 bytes)