I am puzzled with the way Zen Cart displays currencies. I have two languages installed, English and Greek and want prices to be displayed in GBP when in English and in EUR when in Greek pages.
I have set the default currency for each language as follows:
includes/languages/my_template/english.php
includes/languages/my_template/greek.phpCode:define('LANGUAGE_CURRENCY', 'GBP');
I also have these settings in Admin:Code:define('LANGUAGE_CURRENCY', 'EUR');
Admin > Localization > Languages > English (default)
Admin > Localization > Currencies > Euro (default)
Admin > Configuration > My Store > Language Selector = Browser
Admin > Configuration > My Store > Switch To Default Language Currency = true
The idea behind the settings is:
1) If a visitor's browser is in Greek, the Greek home page will load and prices will be displayed in EUR.
2) If a visitor's browser is in English or any other language, the English home page will load with prices displayed in GBP.
What happens though is that calling www.athenscollectibles.info loads the English home page but with prices in EUR. Prices change to GBP only if English language is selected from the header. In this case, if the page is refreshed after a period of inactivity, the page remains in English but currency changes to EUR by itself.
I assume that this has to do with cookies expiring after a few minutes and, refreshing the page, causes the default currency to display rather than the currency defined in the language file. Although I don't know the inside workings of Zen Cart, I believe that the solution is to automatically reselect the language with each page refresh.
If this is the case, is there a way to force language selection with each page refresh? If this is only a false assumption, can anyone explain what's going on and how I can achieve the desired display of currencies?
P.S. I am on ZC 1.5 but the same happened before upgrading from 1.3.9h. I also have the Language/Currency Links in Header add on.
Thanks in advance for any help.


Reply With Quote

