Calc Builder Support

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

Need Help Building a calculator 21.05.2016 16:11

This is my first experience with this component and the only coding experience i have was in Visual Basic I am building a Fair Price calculator for a contracting company website

So we have 4 inputs
Material cost (Var1)
Labor Cost (Var2)
Debris Removal (Var3)
Permits and Fees (Var4)

I need to add the 4 variables

then multiply the sum by .5

Then add the 2 to get the Fair Price
$fairprice =$sum+$result;

so is this correct?
$sum=$Var1+$Var2+$Var3+$var4$result=$sum*.5; $fair price =$sum+$result;

Thank you for any help.

Edited by chadely - 21.05.2016 16:21

Re: Need Help Building a calculator 21.05.2016 16:21

Well I guess i could Just do this as well and save a step


Re: Need Help Building a calculator 22.05.2016 12:31

yes, you could do it even in a single line:


you only need to check your variable names (they must match exactly the ones configured at 'fields' tab, also we suggest to start the var names with a lowercase letter), and remember to end each line always with a ;

All math operators are available, and also many advanced functions (log, pow...etc), please let us know if you need further help with any expression.

Then you can print your result at the exit layout using ##result##

Moonsoft Team

Re: Need Help Building a calculator 26.05.2016 15:53

Thank You very much.
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