CalcBuilder Forum

get price from a matrix

Usuario moon_1618 2014-05-15 16:37:57

Hi,
I want to extract a price value from a matrix (imported from a csv file).
There are two list options: one to choose the width and one to choose the height.
When both are chosen, click the Calculate button to get the price. This price is already in the matrix, so it's not a real calculation, the price is already there in the matrix.
The variable for the width is called 'breedte', for the height it is 'hoogte'.
The name of the matrix is 'duoprice'.
The code I use to get the right price is: $result=.
This doesnot work, for there is no result.

Question is this: how can I make it work, what code do I have to use or what else is wrong in my calculator?
The (not) working calculator can be found here: http://www.jacquelinekamp.nl/index.php/producten-prijs/duo-rolgordijnen

Regards,

Marcel

Moonsoft support 2014-05-16 09:16:10

Hello,

Code seems to be wrong:

$result=$duoprice;

You should add the 'variable' of the matrix before '' to get a value from matrix.

We published in our site a 'Matrix data' video at http://www.moonsoft.es/en/demo-calcbuilder-en, where you can see how to use a matrix.

If you can´t get it working, please place a ticket in Helpdesk at Customer Area with calculator attached and we´ll take a look.

Regards,

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!