CalcBuilder Forum

Simple Grid Calculator

Usuario moon_916 2013-02-08 17:40:31

I want to generate a cost calculator for roofing.

1m x 1m
1m x 2m

2m x 2m
2m x 3m

etc etc

Can this be done with two drop downs each with 1m, 2m, 3m, 4m etc and then calculate a price depending on the user input?

The prices would be supplied in a grid format?

Cheers

Moonsoft support 2013-02-09 11:32:25

Hello,
yes, you could configure your calculator using a couple of option lists (variables named option1, and option2, for ex.), and build a price matrix with all combinations, if you fill the first column of the matrix with values of option1, and the first row with values of option2, you could use the matrix to recover the prices at your code this way:

$result=$nameofyourmatrix;


Hope this helps, best regards

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!