PDA

View Full Version : HTML Order form problem



KingBel
05-14-2009, 04:17 PM
Hi Guys,

I have an html order form with roughly 13 products listed with the following fields:

Quantity
Description
Price without delivery
Price with delivery
Item Total

I then have a grand total at the end and a dropdown for whether the client wants delivery or not at the beginning of the form. The delivery charges are different for each item.

I have the code to add up the totals if there is one price, but the price with delivery stumps me. I am fairly new to Javascript.

forum_amnesiac
05-14-2009, 04:39 PM
Can we see your code, or a link, please

KingBel
05-15-2009, 12:32 PM
Hi,

You can view the website at www.globalworming.co.za/order.html

It's not calculating the totals at the moment, but the e-mail submission does work.

Appreciate the help. I have been trying to figure this out myself, but having very limited knowledge of javascript, I could not really figure out how to reference the fields properly and also could not figure out the if statement for the delivery section.

KingBel
05-15-2009, 01:08 PM
Also, please note that the existing javascript was done by an ex employee, who left the order form as is when he left the company.:(