• Resolved werfewr

    (@werfewr)


    Hi, I am not sure what is wrong, but after some updates of WooCommerce plugins etc. switcher stopped working for me. It reloads the page, add the ?currency=EUR to URL, but currency stays default.

    I am using the redis, so I set it up also in settings.

    I am also using this for translatepress:

    add_filter('wp_head', function() {
        $lang = get_locale();
        global $WOOCS;
        switch ($lang)
        {
            case 'en_GB':
                $WOOCS->set_currency('EUR');
                break;
            default:
                $WOOCS->set_currency('CZK');
                break;
        }
    });

    I thought it is caused by WP Rocket, but after disabling it, problem stays. What should I do?

    • This topic was modified 2 years, 4 months ago by werfewr.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    If you use this custom code the switcher will not work. This code overrides currency change

    Please delete this code and do a test

Viewing 1 replies (of 1 total)
  • The topic ‘Currency not switching’ is closed to new replies.