English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi! I'm trying to create a price calculator for custom-made picture frames to post on my website. I want users to be able to type in the length and the width into a table and then it displays the estimated price. There are three different frame thicknesses; 1.5" Narrow Barnwood, 2" Rustic Barnwood, and 3" Thick Barnwood, so a drop-down menu or something that would let users choose the design would be awesome. I came up with an equation that will do the trick.

First we find the square area of the frame by multiplying the perimeter (length+length+width+width) by the thickness of the frame (which will either be 1.5" 2" or 3"). Then we multiply the square area by either 0.27 if its 1.5" Thick, 0.23 if its 2" Thick, or 0.18 if its three inches thick. Then the calculator should add five dollars for a custom made fee.

So it is as follows: [2*(l+w) *Thickness] * 0.27 if its 1" Thick, 0.23 if its 2" and 0.18 if its 3" thick. Then $5 is added to the final price for a custom fee.

2007-01-03 07:52:08 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

I'm not exactly sure what you wanted when you asked this. So I did a little very simple mockup that will hopefully answer you question. You can make it far more complicated but I hope this helps.



Sorry the cut off code so you might have to concatenate some lines above this if you have questions let me know.
And here is the form I used, again its very basic but it works.


Length:

Width:







Total:


Again this can be a lot more complicated and limiting. I would suggest you get additional code to handle people trying to put XSS in your website etc. You might also want to limit people putting in number that are too small or large for you to handle.

2007-01-03 08:35:56 · answer #1 · answered by djlazi 2 · 0 0

I think a very good service is on fiverr for creating calculators from excel for Wordpress and other sites http://www.fiverr.com/fastjobber/convert-excel-calculator-to-html-calculator-for-use-in-wordpress-or-sites

2014-05-25 06:23:53 · answer #2 · answered by taxworry 2 · 0 0

Hay try this website, it has to do with wood working and I think they offer a free Calculator for your own site. If not and you know about coding and you created your own website just simply view their source code , find the programs source code and copy/paste it into your web site. :) shhhh dont say I told ya that
Leave me thumbs up if it helped

2007-01-03 07:58:41 · answer #3 · answered by slimb20413 3 · 0 1

See image voltaic's cyber web web site to tutorials or purchase a e book. kit funds; form funds { int funds; int cents; funds(int d, int c){} //fill in; analyze for cents <= to ninety 9 void upload(funds m) {} //fill in: analyze for cents <= to ninety 9 public String toString(){go back "$"+funds+"."+cents;} } import funds.*; form TestMoney { public static void major(String.. args) { funds m = new funds(a million, ninety 8); //create funds merchandise m.upload(new funds(3, 3)); //upload funds device.out.println(m); //try toString() frame of mind } } reliable fulfillment.

2016-10-16 23:17:13 · answer #4 · answered by ? 4 · 0 0

fedest.com, questions and answers