|
|
 |
FN-FORUM: Re: Problems with code changes to Calculation Java
date posted 31st January 2006 11:53
Hi there,
Am having some issues with the following String:
quantity+=val;
if (style=="Pro")
{
amount+=val*9.99;
} else {
amount+=val*7.99;
}
if (desc.length>0) {desc+=", ";}
desc+=val+" x "+style+" ("+size+")";
I need to add some other styles to the 9.99 section to be priced this
way but whatever I do it seems to either change all the items to be
priced at 9.99 or 7.99?
If it helps I can email all the code over so you can see how it looks
together.
It is for a form customers fill in which then links to Worldpay to make
the transaction, I have taken the site over from another company (now
uncontactable!) Have managed to add products to the form but I need
them to be priced in the 9.99 section and not the 'else' section?
Any ideas anyone?
Paul.
|
 |
|