Forum


Calc Builder Support

Calc Builder support
Forums
No se permite escribir sin estar logado. Por favor, login

Configuring exit layout to display only selected calculations 22.11.2013 20:52

Hello,
I have created a Calculator, which provides you the number of units of product(s) you require to complete a job. To do this I have multiple Yes/No fields, when selected the answer is given. The problem I am having is I do not want the results page to display all the products, just the selected ones.

For example:

Product A: 20 units
Product B: n/a
Product C: 30 units
Product D: n/a

So I want to remove product B and D from the results page. What can I Do?
Regards,
Jay

Edited by moon_1312 - 22.11.2013 20:53

Re: Configuring exit layout to display only selected calculations 24.11.2013 09:46

Hello,
you can build conditional output depending on user input. To achive this you'll need an 'if' structure:

if(condition){
$result="Your result when condition is met";
}
else{
$result="Your result when condition is NOT met";
}



so you can print ##result## at your exit layout. For your case, the condition is when checkbox is selected (replace 'yourcheckbox' for your field name):

if($yourcheckbox=="Y"){
$result="Checkbox selected";

}
else{
$result="Checkbox not selected";
}


You have a video tutorial regarding this function here:

http://www.moonsoft.es/en/demo-calcbuilder-en

(Conditional output)

that you can also check to have an example of the steps needed.


Regards
Moonsoft Team
www.moonsoft.es

Re: Configuring exit layout to display only selected calculations 25.11.2013 20:10

Its working perfectly.

Thank you,
Jay

Edited by moon_1312 - 25.11.2013 20:11
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Lo que nuestros clientes opinan de nosotros