I want to create a print ordering system for my website. This is the general format I want it to be in:
http://www.zachdobson.com/order_form4c.htm
Here is the code that I found that works for getting the subtotals, but I'm having a hard time figuring out how to add up the subtotals to reach the grand total.
Thanks in advance.
http://www.zachdobson.com/order_form4c.htm
Here is the code that I found that works for getting the subtotals, but I'm having a hard time figuring out how to add up the subtotals to reach the grand total.
Code:
<!--
function displayprice()
{
var a = document.order.product.value;
var b = document.order.qty.value;
var c = document.order.productb.value;
var d = document.order.qtyb.value;
var e = document.order.productc.value;
var f = document.order.qtyc.value;
var g = document.order.productd.value;
var h = document.order.qtyd.value;
var i = document.order.producte.value;
var j = document.order.qtye.value;
document.order.totalprice.value = a*b
document.order.totalpriceb.value = c*d
document.order.totalpricec.value = e*f
document.order.totalpriced.value = g*h
document.order.totalpricee.value = i*j
}
Thanks in advance.