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

Price change error

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.

Good morning we are using your plugin and we had problems with the geo ip rules, I removed them from your plugin and put the following code in functions.php:

add_filter('wp_head', function() {
    $lang = get_locale();
    global $WOOCS;
    switch ($lang)
    {
   case 'es_ES':
            $WOOCS->set_currency('EUR');
            break;
   case 'pt_PT':
            $WOOCS->set_currency('EUR');
            break;
   case 'fr_FR':
            $WOOCS->set_currency('EUR');
            break;
   case 'it_IT':
            $WOOCS->set_currency('EUR');
            break;
   case 'de_DE':
            $WOOCS->set_currency('EUR');
            break;
       case 'en_GB':
            $WOOCS->set_currency('GBP');
            break;
  case 'en_US':
            $WOOCS->set_currency('USD');
            break;
    }
});

But the price does not change correctly when you select english uk or usa, we use translate press.

Can you help me?

Best regards and thanks.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

And drop me exact link to the issue

Hola, ya adjunte la clave, el error esta en mi web https://consolacionegea.com/, en cualquier producto no se pone en la moneda forzada para el idioma ingles UK y Ingles US. primero aparece la moneda correcta y a continuación se cambia a euros.

 

Un saludo y gracias.

Hello, I already attached the key, the error is on my website https://consolacionegea.com/, in any product is not put in the forced currency for the language English UK and English US. first appears the correct currency and then changed to euros.

 

Thank you very much.

Hello

Please try to change your code:

add_filter('wp_head', function() {
    $lang = get_locale();
    global $WOOCS;
    switch ($lang)
    {
   case 'es_ES':
   case 'pt_PT':
   case 'fr_FR':
   case 'it_IT':
   case 'de_DE':
            $WOOCS->set_currency('EUR');
            $_GET['currency'] = 'EUR';
            break;
       case 'en_GB':
            $WOOCS->set_currency('GBP');
            $_GET['currency'] = 'GBP';
            break;
  case 'en_US':
            $WOOCS->set_currency('USD');
            $_GET['currency'] = 'USD';
            break;
    }
});

Good morning, it works but the problem is that it does not let you change the currency with the switch. Would it be possible for both to work?

Thank you.

Of course not! This custom code overrides the switching functionality

Ok perfect, and another query related cn the product switch, as I can center and match the switch in the menu, attached image.

 

https://ibb.co/z8FF87K

Hello

In this case, you need to change the styles of your menu.

An  example:

body .sub_menu>ul>li>a{

display: block;

}

.sub_menu .woocs-style-1-dropdown .woocs-style-1-select {

padding: 5px;

}

It works perfectly, thank you very much!

Great! Welcome;)