Calc Builder Support

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

Money Converter 04.11.2015 11:12

Hi Moonsoft,

I am trying to do a calculator that user input his amount of money and choose the 2 currencies to calculate
his amount for example: I want to convert MY AMOUNT OF 10000 (textfield) FROM euro (dropdown [euro,dollar,paundect]) TO dollar (dropdown [euro,dollar,paundect])! This is one piece of the code:

If (var1==eu && var2==do){

else If (var1==eu && var2==eu){

else If (var1==eu && var2==le){

else If (var1==eu && var2==pa){

The result don't show in the frontend after i click calculate!

Please help 'cause it's urgent!
Thank you in Advance!

Edited by bigmediaexpert - 04.11.2015 11:27

Re: Money Converter 04.11.2015 11:20

we assume your first dropdown has variable name 'var1', the second has variable name 'var2', the amount textfield has variable name 'sum'
and the values of the dropdowns are 'eu' 'do' and 'pa', right?

Then you only need to correct a few sintax errors at your code.

if ($var1=="eu" && $var2=="do"){

same for the other 'if' expressions. then you can print ##result## at your output section. The corrections:

- if must be written in lowercase
- all variables must be preceeded by dollar sign $
- values enclosed inside " because they are not numbers but texts.

As soon as you enter an error at your code you won't get right response, we suggest to enter one if block and once you have it working add the other combinations.

Hope this helps,regards
Moonsoft Team

Re: Money Converter 06.11.2015 11:26

Thank you very much! I did it!

I have another question!

How can I change the up limit of a text area when i choose a value from a dropdown list?

Re: Money Converter 09.11.2015 13:10


We are not sure of the function required. Are you looking for a method to force a numeric limit or do you want to limit the maximun number of characters of the textarea?

Moonsoft Team

Re: Money Converter 13.11.2015 10:30

I want to do a loan calculator like the demo version but my exit results don't show the table of amortization! It shows all the results in a row , not in the table! And the javascript function drawchart() doesn't show the chart! it draws an empty chart!

Can you please check it what's wrong?!

Thank you in advance

Re: Money Converter 13.11.2015 15:37

it's hard to tell only seeing the frontend result. We assume you have copied the calculator from the demo site and used as template for building your own? If so, please double check you have copied the js from all javascript tabs, and also the exit layout containing same sections from the example (you can use toggle editor to copy the exact html).

If you can't get it working, please export your calculator abd attach it zipped to a private ticket of your helpdesk, we'll try it here and let you know which is the configuration missing.

Moonsoft Team

Re: Money Converter 04.12.2015 15:25

I have copied all the script from javascript tabs, from exit layout, from php code with toggle editor and the results are the same! How can i export my calculator?! I have to zipped the calcbuilder folder at the server or what?

Thank you for the support !

Re: Money Converter 04.12.2015 17:47

in order to export a calculator you must use the 'save' icon you will find next to your calculator name at the calcbuilder list of calculators page. This will create the xml file with all the information that you can zip.

Moonsoft Team

Re: Money Converter 24.12.2015 18:49

Hi again,

Is any way to include an external php file and to show external variables as calcbuilder results!

For example i want to:

include "script/example.php"

and to show $myresult = $var1 (from example.php) * 12.03 / $var2 -5.7;

Is this possible?! Please i need help!

Thank you in advance!

Edited by bigmediaexpert - 24.12.2015 18:50

Edited by bigmediaexpert - 24.12.2015 18:51

Re: Money Converter 27.12.2015 09:37

Yes,you can use any valid php expression at your code section. This works for includes require ,require_once... php functions that you can use to include external php files inside your calculator code

Moonsoft Team
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