how to change automatically currency on each page depending the language?
Two simple steps –
1. In includes/languages/english.php and in each additional language you should correctly define the code of the currency for this language, before the last ?>:
For example with EURO -
In includes/languages/english.php -
define('LANGUAGE_CURRENCY', 'EUR');
For example with BGN –
In includes/languages/bulgarian.php -
define('LANGUAGE_CURRENCY', 'BGN');
Codes as EUR and BGN should be the same as in the admin section/Localization/Currencies
2. In includes/configure.php put this code before the last ?>:
define("USE_DEFAULT_LANGUAGE_CURRENCY", true);
That’s it!
The module is tested in English and Bulgarian
in http://www.nasena.eu/
More...





LinkBack URL
About LinkBacks









Bookmarks