Skip Navigation

Open

Reported for: WooCommerce Multilingual & Multicurrency 5.3.6

Topic Tags: Bug, WCML

Overview of the issue

For websites hosted on Kinsta, there may be instances where WooCommerce Multilingual currency switching functionality encounters difficulties. This can result in users viewing incorrect currency displays or being unable to switch currencies as expected.

Workaround

To mitigate this issue, a combination of code adjustments and Kinsta support intervention is recommended.

Step 1

Please, make sure of having a full site backup of your site before proceeding.

  • Add the following code snippet to your theme’s functions.php file:
    /**
     * Enable cookie strategy for Kinsta caching.
     * 
     * @link wpmlsupp-11434
     */
    add_filter( 'wcml_user_store_strategy', function () {
        return 'cookie';
    });
    

Step 2

After implementing the code snippet, reach out to Kinsta support to request enabling cookie-based caching for your site. Specifically, ask to use the wcml_client_currency cookie for cache bucket keys.

You can find more information about how to get help support from Kinsta team on this link.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>