Forum


Calc Builder Support

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

run 2 ot more code 09.01.2018 18:41

Hi!

How can I make that user choose e.g. a country and run a specific code, but when choose an another then calc use another code?

Thanks for the help,
Zen11t

Edited by zen11t - 09.01.2018 18:42

Re: run 2 ot more code 09.01.2018 18:46

Hi,
you can introduce conditional expressions at your code, let's say your field variable is
country

and you have different values at your option 'value' field, for ex

USA
Germany
Spain

at the code you can run different calculations using 'if' structure:

if($country=="USA"){

//this section of code will only be used if country=USA

}
if($country=="Spain"){

//this section of code will only be used if country=Spain

}

..etc

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: run 2 ot more code 11.01.2018 17:56

Thank you very much.

Zen11t
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