PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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;
        }
   });

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;
}
});

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;
}
});

Hello

I checked your site, language switching works without reloading the site, so custom code will not work

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

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

Thank you ,I drop my wp-admin  access.

 

I disabled  your custom code - https://share.pluginus.net/image/i20220727102124.png

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

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