I have a table of shipping and handling costs identified to a range for total amount purchased. For example, if a customer purchases a total dollar value between 1 cent and $30, shipping and handling will cost $7.50, if between $30.01 and $45, then $8.50, if between $45.01 and $95, then $9.50, and if => $95.00, then $10.50. Based upon the code that follows, I have something wrong with my syntax and getting it to move a shipping and handling value into the field. My attempt at the code needed is as follows:
if (Total of Page 2 > 0 && Total of Page 2 <= 30.00) {event.value = 7.50};
if (Total of Page 2 > 30.00 && Total of Page 2 <= 45.00) {event.value = 8.50};
if (Total of Page 2 > 45.00 && Total of Page 2 <= 95.00) {event.value = 9.50};
if (Total of Page 2 > 95.00) {event.value = 10.50};
Thank you for your help!
Replace "Total2" above with the actual name of your field.
George