G
Guest
if the values of the following are already set from an order form in another
iframe.
cKiwiFruit=18
KiwiFruit=17
i need a line to calculate to cost of the special offer, kiwi's are 18pence
each but buying 7 you only pay £1.00. so buying 17 would be 2 lots of £1.00
for the first 14 and then 18pence each for the remander (3 * 18pence) a
total of £1.54pence.
total=eval(((int)(form.KiwiFruit.value/7)*100)+(((int)(form.KiwiFruit.value/7)*7)*cKiwiFruit));
thanks
iframe.
cKiwiFruit=18
KiwiFruit=17
i need a line to calculate to cost of the special offer, kiwi's are 18pence
each but buying 7 you only pay £1.00. so buying 17 would be 2 lots of £1.00
for the first 14 and then 18pence each for the remander (3 * 18pence) a
total of £1.54pence.
total=eval(((int)(form.KiwiFruit.value/7)*100)+(((int)(form.KiwiFruit.value/7)*7)*cKiwiFruit));
thanks