- Posts: 86243
- Thank you received: 14232
default currency depending on language
Please Log in or Create an account to join the conversation.
- Posts: 3
- Thank you received: 1
and called the function here :
I think this is the good way to do, you help the user the first time and after you let him free to choose which couple language/currency he wants.
Please Log in or Create an account to join the conversation.
When i put both into index.php / template.php i got blank page (i'm using yootheme template)
Please Log in or Create an account to join the conversation.
Please any suggestion ?
Please Log in or Create an account to join the conversation.
It does not ask for Falang.
You have to put it in the Joomla index.php file, at the website root folder.
I don't understand why you put it in your "template.php" file.
If you got a blank page, it means that you wrote something wrong in PHP. Check your PHP log to have more details of the error.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Anyway it still doesn't work when i put the code in the root index.php, no currency changes, nothing in log
I changed the language tags and currency id's.
Is there something else what has to be done ? Like currency module visible or ... ?
Please Log in or Create an account to join the conversation.
If you are sure you made the right modifications, it should set the currency depending the langue on the first visit.// Set the currency at the first visit, regarding of the page language
To test it, clean your cookies. You have to open the website like if you was the first time.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Not just for the first visit, i thought for that is the geolocation plugin.
Please how could i be changing the currency together with joomla language switcher module ?
Please Log in or Create an account to join the conversation.
You can create a little system plugin which will be called at each page load to change the currency depending on the language.
The code in a previous post can be used and adapted for your needs.
It require php knowledge.
Please Log in or Create an account to join the conversation.
Its also because we are using Joomla articles to display products, where the currency module doesn't affect displayed price.
And currency switcher is displayed just on the checkout page.
Anyway thank you very much.
Please Log in or Create an account to join the conversation.
integrate the changes into language switcher
I would be interested in this solution too, if possible.
Thank you
Please Log in or Create an account to join the conversation.
- Posts: 131
- Thank you received: 7
Fortunately, I found this thread! Anyway, I've created a small plug-in called: CurrencyFollowsLanguage which simply maps a system language tag to a hikashop currency ID. You can set up these maps (up to 10, easily extended), in the plugin backend.
Zip file of the plug-in attached.
Please Log in or Create an account to join the conversation.