Moderators: Koibito, Stefko, Randy
<SCRIPT>
function AddOneOfManyToCart(formToUpdate)
{
selectedObj = formToUpdate.PRODUCTSELECTOR[formToUpdate.PRODUCTSELECTOR.selectedIndex];
nameVal = selectedObj.getAttribute("name");
if (nameVal == "NOTHING") {
alert('Please select a product');
return false;
}
formToUpdate.NAME.value = nameVal;
costVal = selectedObj.getAttribute("cost");
formToUpdate.PRICE.value = costVal;
id_numVal = selectedObj.getAttribute("id_num");
formToUpdate.ID_NUM.value = id_numVal;
shippingVal = selectedObj.getAttribute("shipping");
formToUpdate.SHIPPING.value = shippingVal;
switch( formToUpdate.PRODUCTSELECTOR[formToUpdate.PRODUCTSELECTOR.selectedIndex].value ) {
}
AddToCart(formToUpdate);
}
</script><table border="1" width="100%">
<tr>
<td width="30%" align="center">6', 1/4& Diameter: Self Coiling Black Cable (3.50)</td>
<td width="36%" align="center">005-61DAT <form name="order" action="../managecart.htm">
<input type="hidden" name="PRICE" value><input type="hidden" name="NAME" value><input
type="hidden" name="ID_NUM" value><input type="hidden" name="SHIPPING" value><dl>
<dd><input type="text" size="2" maxlength="3" name="QUANTITY"
onChange="this.value=CKquantity(this.value)" value="1"> <select name="PRODUCTSELECTOR"
size="1">
<option selected>Please select </option>
<option cost="3.50" id_num="005-61DAT" name="Individuals" shipping="0.00">individuals</option>
<option cost="4.00" id_num="005-61DAT" name="Case Pack" shipping="0.00">Case Pack</option>
<option cost="56.00" id_num="005-61DAT" name="Master Case" shipping="0.00">Master Case</option>
</select> <p><input type="button" onClick="AddOneOfManyToCart(this.form)"
value="Add to Cart"> </p>
<p><a href="../managecart.htm">Check out now</a> </p>
</dd>
</dl>
</form>
</td>
</tr>
input type="hidden" name="PRICE" value><input type="hidden" name="NAME" value>input type="hidden" name="PRICE" value=""><input type="hidden" name="NAME" value=""><!-- -=#=-=#=- start of item -->
<TR><TD align="center"><A name="33251"></A>
<IMG src=cable1.jpg" width="107" height="160" alt="cable1.jpg (7992 bytes)" border="0"><BR>
</TD>
<TD>
<DL>
<DT><B>Sheep Dip Mod & & $1.00 and $10.00</B></DT>
<DD>This product tests the AddOneOfManyToCart(this.form) function<BR><BR>
<!--Shopping Cart Begin-->
<form name=order>
<input name="PRICE" type=hidden id="PRICE" value="">
<input name=NAME type=hidden id="NAME" value="">
<input name=ID_NUM type=hidden id="ID_NUM" value="">
<input type=hidden name="WEIGHT" value="0.00">
<input type=hidden name="SHIPPING" value="0.00">
<select name="PRODUCTSELECTOR">
<option selected name="select">Please select size</option>
<option cost="1.00" id_num="33251" name="1L bottle Sheep Dip" weight="1.5" shipping="1.00">1 Litre bottle $1.00 Shipping $1.00 Weight 1.5</option>
<option cost="1.00" id_num="33253" name="1L bag Sheep Dip" weight="1.25" shipping="1.00">1 Litre bag $1.00 shipping $1.00 Weight 1.25</option>
<option cost="3.00" id_num="33252" name="4L can Sheep Dip with hady pour spout" weight="4.5" shipping="2.00">4 Litre can $3.00 Shipping $2.00 Weight 4.5</option>
<option cost="10.00" id_num="33254" name="255L Drum Sheep Dip" weight="225" shipping="120.00" >255 Litre (45 Gal/55 US Gal) Drum $200.00 Shipping $120.00 Weight 255</option>
</select><BR>
Quantity: <input type=text size=2 maxlength=3 name=QUANTITY onChange='this.value=CKquantity(this.value)' value="1"> & &
<input type="image" onClick='AddOneOfManyToCart(this.form)' src="./images/a2_cart.gif" name="buy" WIDTH="38" HEIGHT="30" border=0 value="Add to Cart" ALT="Add to Cart" align=top>
</form>
<!--Shopping Cart End -->
<BR><BR></DD>
</DL>
</TD></TR>
<!-- -=*=-=*=- End of item -->
<option selected>Select<option selected name="select">Please select size</option>Return to Help: Formatting and Style
Users browsing this forum: No registered users and 0 guests