Moonsoft Software Solutions

Simple Grid Calculator

Started 8 Feb 2013 · 1 reply

  1. moon_916
    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
  2. Moonsoft support
    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

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket