Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

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.



Messages by Day
January 31st 2006
January 30th 2006
January 29th 2006
January 28th 2006
January 27th 2006
January 26th 2006
January 25th 2006
January 24th 2006
January 23rd 2006
January 22nd 2006
January 21st 2006
January 20th 2006
January 19th 2006
January 18th 2006
January 17th 2006
January 16th 2006
January 15th 2006
January 14th 2006
January 13th 2006
January 12th 2006
January 11th 2006
January 10th 2006
January 9th 2006
January 8th 2006
January 7th 2006
January 6th 2006
January 5th 2006
January 4th 2006
January 3rd 2006
January 2nd 2006
January 1st 2006


Messages by Month
December 2006
December 2006
October 2006
October 2006
August 2006
July 2006
July 2006
May 2006
May 2006
March 2006
March 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000