CalcBuilder Forum

Overtake calculation sum from one form to another

Usuario moon_1441 2014-05-16 15:19:46

Dear Support!

I would like to know if there is a solution to overtake the calculated price from one form to another form - the final calculated price can be the initial price for the second form.

This would be a very good option for me.

Thank you for your help.

Regards
Zsolt

Moonsoft support 2014-05-16 16:23:18

Hello,

You could set first calculator results on second one using PHP/Joomla session.

First calculator:

$session = JFactory::getSession();
$session->set( 'myresult', $VAR_WITH_MY_RESULT );

Second calculator:

$session = JFactory::getSession();
$VAR_WITH_MY_RESULT=$session->get( 'myresult');

Obviously, first calculator should be executed before second calculator.

Hope this helps. Regards,

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 40 hours

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

Buy now!