• hi, i have a problem with wp menu cart and wpml:

    i have a multilanguage website it/en if i open the italian version i have the flyout in italian
    if i switch in en version, the flyout still in italian
    but if i’m in eng version of site and i update the cart the flyout is in english, so i think that is a problem of cache

    is possible force the clean cache on switch language or disable cache at all?

    thank you for your time

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! There is currently a bug in WPML (specifically WooCommerce Multilingual) that does not reset the sessionstorage (which is a bit different from regular browser cache) when changing languages. In earlier versions this was handled by WPML, if you chose a different language the sessionstorage was emptied and you saw the correct language. This problem not only affects Menu Cart but also at all other parts of WooCommerce that are updated live (via AJAX), such as the official Cart Widget. The problem will be resolved each time you perform an action in which the sessionstorage is updated. So if you change languages ​​and then add something to the cart, the language is correct, if you change then it will not be correct, then add something more then it will take the correct language – etc.

    The problem is reported to WPML, but I advise you still to report it again, so that perhaps the issue gets higher priority. The bug is specifically in woocommerce-multilingual/res/js/cart_widget.js – this script normally resets the sessionstorage when the language changes, but that has not worked since a recent update.

    If you need more information from our side, let us know!

    Thread Starter Andrea

    (@licoreo)

    ok, thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘change language cache problem’ is closed to new replies.