Flash Website Builder- Trendy Site Builder is a Flash Site Building tool that helps users build stunning websites. Check Out Custom Custom Logo Design by LogoBee. Website Design and Free Logo Templates available.
 CodingForums.com quote calculator needed

Before you post, read our: Rules & Posting Guidelines

Enjoy an ad free experience by logging in. Not a member yet? Register.
 09-20-2013, 12:46 AM PM User | #1 jpowell79 New to the CF scene   Join Date: Sep 2013 Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts quote calculator needed if anyone could help me with this I'd be extremely grateful. I'm slowly teaching myself HTML and CSS but anything more complex and I struggle! I'm trying to incorporate an online "instant quote" calculator for a cleaning services website I am building for my father, but really struggling. Basically I am trying to achieve the following... •Step 1 - the customer selects from one of 6 surface types to be cleaned (either radio buttons or a drop-down list), with the first 3 options carrying a 10% premium. •Step 2 - the customer specifies the surface area in two boxes. The first box represents Length [] and the second box represents Width [] - This instantly generates a "total surface area" value in a box, which is simply Length multiplied by Width. •Step 3 - the customer specifies an option for water feed, simply selecting Yes or No •Step 4 - the customer specifies an option for after-care treatment, again simply selecting Yes or No Once the customer has inputted thier information in these 4 steps, the form should generate two values...... the first being a total, and the second being a total including VAT (which is basically the total, multiplied by 1.2) I hope that makes sense so far :-) Ok so in terms of the actual calculations required, they would be as follows.... If the "total surface area" value is equal to or less than 9, then the "base" value will be £99 If the "total surface area" value is greater than 9, then the base value will be £99 + an additional £60 for every extra 9 (or part thereof) that the "total surface area" is showing. I will give some examples... If the "total surface area" value is 0-9, then the "base" value is £99 If the "total surface area" value is 10-18, then the "base" value is £99+£60 If the "total surface area" value is 19-27, then the "base" value is £99+£60+£60 If the "total surface area" value is 28-36, then the "base" value is £99+£60+£60+£60 If the "total surface area" value is 37-45, then the "base" value is £99+£60+£60+£60+£60 etc, etc.Hopefully you get what I mean :-) Ok so now we have a base value calculated baed on total surface area, I would need to also include the options selected in step 3 and step 4. If the customer selects "Yes" in step 3, then an additional 40% needs to be added to the base price. so as an example, if the "total surface area" value was 40, then the base value would be £339... and because the customer selected "Yes" from step 3, then an extra 40% is added (£135.60), which takes the price up to £474.60. The same calculation applies for step 4, with the only difference being that an additional 15% needs to be applied to the "base" price if "Yes" is selected in step 4. So in this instance, if the customer selected "Yes" for both step 3 AND step 4, the total price would be - base price(£339) + 40% of base price(£135.60) + 15% of base price(£50.85) = £525.45 So in conclusion, it would show the value of £525.45 and then just below would also show the value including VAT(20%) which would be £630.54 The only other thing to mention are the first three options in step 1 which carry a 10% premium. If the customer selects one of these three surface types, then the "base" values would be £108.90 + an additional £66 for every extra 9 (or part thereof) that the "total surface area" is showing. This is what I'm trying to do :-) As I say, if anyone could help with this, I'd be really grateful. thanks
 09-20-2013, 02:05 AM PM User | #2 glenngv Supreme Master coder!     Join Date: Jun 2002 Location: Los Angeles, CA Original Location: Philippines Posts: 10,676 Thanks: 0 Thanked 190 Times in 187 Posts Welcome to the CF forums. In order to get free help from the members here, you have to show what you have and not just ask for someone to do the whole thing for you. You have very detailed requirements and I think this may fit more on paid forums (if you are willing to pay): http://www.codingforums.com/forumdisplay.php?f=47 __________________ Glenn _____________________________________________ Tower of Hanoi Android app (Ad-FREE!) Tower of Hanoi Android app (FREE!) Tower of Hanoi Leaderboard vBulletin 5 Floating Bar extension vBulletin 5 Slideshow extension vBulletin 5 Quote Selected Text extension vBulletin 5 Profile Preview Tooltip extension
 09-20-2013, 08:28 AM PM User | #3 Philip M Supreme Master coder!     Join Date: Jun 2002 Location: London, England Posts: 17,475 Thanks: 200 Thanked 2,470 Times in 2,448 Posts This forum is not a free coding service. As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for commercial use), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some/most of the code yourself. Then someone here will almost certainly help you correct/improve your work. As glenngv says, your best plan is do what you would do if your car or a domestic appliance broke down or you had toothache - pay a professional who understands what they are doing to fix it. You can post in the Web Projects section of this forum. __________________ All the code given in this post has been tested and is intended to address the question asked. Unless stated otherwise it is not just a demonstration. Last edited by Philip M; 09-20-2013 at 08:40 AM..
 09-23-2013, 06:05 PM PM User | #4 jalarie Regular Coder   Join Date: Jun 2002 Location: Flint, Michigan, USA Posts: 606 Thanks: 1 Thanked 20 Times in 20 Posts I was bored, so here is a place to start. It has some problems and has only been tested in Opera. You get to work out the rest: Code: Cleaning Services Quote Calculator

__________________ Visit my site at http://spruce.flint.umich.edu/~jalarie/.

 Bookmarks

 Thread Tools Rate This Thread Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home :: Client side development     JavaScript programming         DOM and JSON scripting         Ajax and Design         JavaScript frameworks         Post a JavaScript     HTML & CSS     XML     Flash & ActionScript         Adobe Flex     Graphics and Multimedia discussions     General web building         Site reviews         Building for mobile devices :: Server side development     Apache configuration     Perl/ CGI     PHP         Post a PHP snippet     MySQL         Other Databases     Ruby & Ruby On Rails     ASP     ASP.NET     Java and JSP     Other server side languages/ issues         ColdFusion         Python :: Computing & Sciences     Computer Programming     Computer/PC discussions     Geek News and Humour Web Projects and Services Marketplace     Web Projects         Small projects (quick fixes and changes)         Medium projects (new script, new features, etc)         Large Projects (new web application, complex features etc)         Unknown sized projects (request quote)         Vacant job positions         Looking for work/ for hire         Project collaboration/ partnership         Paid work offers and requests (Now CLOSED)     Career, job, and business ideas or advice     Domains, Sites, and Designs for sale         Domains for sale         Websites for sale         Design templates and graphics for sale :: Other forums     Member Offers     Forum feedback and announcements

All times are GMT +1. The time now is 05:27 AM.