Currency on Gtranslation - but can't switch currency
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from kenny on July 26, 2022, 03:49Dear team,
We have incorporated the auto currency selection by putting in the following code:
But we can't seem to switch the currency anymore.
our website: https://eunl-diy.com/shopAny way to fix this?
add_filter('wp_head', function() {
$lang = isset($_SERVER['HTTP_X_GT_LANG']) ? $_SERVER['HTTP_X_GT_LANG'] : '';
global $WOOCS;
switch ($lang)
{
case 'bg_BG':
$WOOCS->set_currency('BGN');
break;
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
default: $WOOCS->set_currency('USD');
break;
}
});
Dear team,
We have incorporated the auto currency selection by putting in the following code:
But we can't seem to switch the currency anymore.
our website: https://eunl-diy.com/shop
Any way to fix this?
add_filter('wp_head', function() {
$lang = isset($_SERVER['HTTP_X_GT_LANG']) ? $_SERVER['HTTP_X_GT_LANG'] : '';
global $WOOCS;
switch ($lang)
{
case 'bg_BG':
$WOOCS->set_currency('BGN');
break;
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
default: $WOOCS->set_currency('USD');
break;
}
});
Quote from kenny on July 26, 2022, 04:10Dear team,
We have incorporated the auto currency selection by putting in the following code:
But we can't seem to switch the currency anymore.When we switch languages, the correct currency is not displayed.
The website only shows the TWD currency.our website: https://eunl-diy.com/shop
Any way to fix this?
add_filter('wp_head', function() {
$lang = isset($_SERVER['HTTP_X_GT_LANG']) ? $_SERVER['HTTP_X_GT_LANG'] : '';
global $WOOCS;
switch ($lang)
{
case 'tw_BG':
$WOOCS->set_currency('TWD');
break;
case 'ch_GB':
$WOOCS->set_currency('CNY');
break;
default:
$WOOCS->set_currency('EUR');
break;
}
});
Dear team,
We have incorporated the auto currency selection by putting in the following code:
But we can't seem to switch the currency anymore.
When we switch languages, the correct currency is not displayed.
The website only shows the TWD currency.
our website: https://eunl-diy.com/shop
Any way to fix this?
add_filter('wp_head', function() {
$lang = isset($_SERVER['HTTP_X_GT_LANG']) ? $_SERVER['HTTP_X_GT_LANG'] : '';
global $WOOCS;
switch ($lang)
{
case 'tw_BG':
$WOOCS->set_currency('TWD');
break;
case 'ch_GB':
$WOOCS->set_currency('CNY');
break;
default:
$WOOCS->set_currency('EUR');
break;
}
});
Quote from kenny on July 26, 2022, 04:39Update
Now code:
add_filter('wp_head', function() {
$lang = isset($_SERVER['HTTP_X_GT_LANG']) ? $_SERVER['HTTP_X_GT_LANG'] : '';
global $WOOCS;
switch ($lang)
{
case 'zh_TW':
$WOOCS->set_currency('TWD');
break;
case 'zh_CN':
$WOOCS->set_currency('CNY');
break;
default:
$WOOCS->set_currency('EUR');
break;
}
});
Update
Now code:
add_filter('wp_head', function() {
$lang = isset($_SERVER['HTTP_X_GT_LANG']) ? $_SERVER['HTTP_X_GT_LANG'] : '';
global $WOOCS;
switch ($lang)
{
case 'zh_TW':
$WOOCS->set_currency('TWD');
break;
case 'zh_CN':
$WOOCS->set_currency('CNY');
break;
default:
$WOOCS->set_currency('EUR');
break;
}
});
Quote from Pablo Borysenco on July 26, 2022, 09:49Hello
I checked your site, language switching works without reloading the site, so custom code will not work
Hello
I checked your site, language switching works without reloading the site, so custom code will not work
Quote from kenny on July 26, 2022, 14:32Thanks for the reply, but I'm still having a problem that when I switch the language, my currency price switches over, but the currency symbol "NT$" still doesn't switch to €.
This image is my settings: https://upload.cc/i1/2022/07/26/pHhN7e.jpg
Thanks for the reply, but I'm still having a problem that when I switch the language, my currency price switches over, but the currency symbol"NT$" still doesn't switch to €.
This image is my settings: https://upload.cc/i1/2022/07/26/pHhN7e.jpg
Quote from Pablo Borysenco on July 27, 2022, 11:16Hello
Please drop me wp-admin access - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png
It looks like a custom code that changes symbols
Hello
Please drop me wp-admin access - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png
It looks like a custom code that changes symbols
Quote from kenny on July 27, 2022, 11:28Thank you ,I drop my wp-admin access.
Thank you ,I drop my wp-admin access.
Quote from Pablo Borysenco on July 27, 2022, 12:21I disabled your custom code - https://share.pluginus.net/image/i20220727102124.png
I disabled your custom code - https://share.pluginus.net/image/i20220727102124.png
Quote from kenny on July 27, 2022, 12:47But when I switch to English language, the currency still shows "NT" and the € symbol is not displayed
Could you help me to take al look if there is something wrong with the plugin setting?
Tahank you
But when I switch to English language, the currency still shows"NT" and the € symbol is not displayed
Could you help me to take al look if there is something wrong with the plugin setting?
Tahank you
Quote from Pablo Borysenco on July 28, 2022, 09:23Hello
Could you help me to take al look if there is something wrong with the plugin setting? - Not! The plugin is configured correctly. the problem is your customization.
The currency is displayed correctly when I disable the snippet plugin. You should check your custom code or contact the developer who made this code for you
Hello
Could you help me to take al look if there is something wrong with the plugin setting? - Not! The plugin is configured correctly. the problem is your customization.
The currency is displayed correctly when I disable the snippet plugin. You should check your custom code or contact the developer who made this code for you