Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.
You are not logged in.
Hello,
It is possible to make that if customer change language currency must be changed automaticaly. Example if default currency is USD but if customer choose German language (or customer was directly redirected to German version of store front) currency must be automaticaly swiched to EUR.
Thanks for help in advance.
Bes regards,
D
Offline
Modify file published/SC/html/scripts/modules/test/class.test.php by changing
if(isset($_POST["current_currency"])){
currSetCurrentCurrency( $_POST["current_currency"] );
RedirectSQ();
}to
if(isset($_POST["current_currency"])){
currSetCurrentCurrency( $_POST["current_currency"] );
RedirectSQ();
}else{
$new_currency_iso3 = '';
switch (LanguagesManager::getCurrentLanguage()->iso2){
case 'de':{
$new_currency_iso3 = 'EUR';
break;
}
case 'en':{
$new_currency_iso3 = 'USD';
break;
}
}
if ($new_currency_iso3){
$new_currency = currGetCurrencyByISO3 ($new_currency_iso3);
currSetCurrentCurrency ($new_currency['CID']);
}
}Offline
It works!! Many thanks Rat for your help.
Offline