I'm working on a proyect for a shopping cart, the problem is the coding is not taking the thousands in the sum for the grand total e.g.:
Sub total: 4,175.50
G.S.T.: 250.53
P.S.T: 334.04
Shipping: 8.95
Handling: 4.00
Grand Total:601.52
and it should be: 4,760.07
I've tried everything with the formatnumber, I want to know if there is a way to remove the comma for the thousands, or make the grand total to get the thousands format.
This is the parseFloat I have:
}
document.frmCart.shipping_cost.value = sngCurrShip.toFixed(2)
document.frmCart.shipping_show.value = (sngCurrShip - 4).toFixed(2)
document.frmCart.handling_show.value = (handleFee).toFixed(2)
sngGrandTot = parseFloat(document.frmCart.sngSubTotal.value) + parseFloat(document.frmCart.pst.value) + parseFloat(document.frmCart.gst.value) + parseFloat(document.frmCart.shipping_cost.value)
document.frmCart.GrandTotal.value = sngGrandTot.toFixed(2)
document.frmCart.charge_total.value = sngGrandTot.toFixed(2)
return ;
}
THANK YOU