- Code: Select all
<script language="javascript">
function toggleprice()
{
var INFO = document.order.ADDITIONALINFO2;
if ( INFO.value == "2XL" ){
if (document.order.QUANTITY.value >= 12)
{document.order.PRICE.value = 15.00;
}
else if (document.order.QUANTITY.value >= 6)
{document.order.PRICE.value = 25.00;
}
else{
document.order.PRICE.value = 35.00;
}
}
else {
if (document.order.QUANTITY.value >= 12)
{document.order.PRICE.value = 10.00;
}
else if (document.order.QUANTITY.value >= 6)
{document.order.PRICE.value = 20.00;
}
else {
document.order.PRICE.value = 30.00;
}
}
}
</script>
Change this to:
- Code: Select all
<FORM NAME=order ACTION="managecart.html" onclick="toggleprice()" onSubmit="AddToCart(this);">
And this to:
- Code: Select all
<INPUT type=hidden name="PRICE" value="">
