Resolved

Reported for: WooCommerce Multilingual 3.8.1

Symptoms

Because of changes in WooCommerce, the Widget for cart is not updating correctly with data when switching languages.

 

Workaround

As a workaround you can replace in /woocommerce-multilingual/res/js/ the files cart_widget.js and cart_widget.min.js with this code:

jQuery(document).ready(function($){
    try {
        var cart_hash_key = wc_cart_fragments_params.ajax_url.toString() + '-wc_cart_hash';

        if (sessionStorage.getItem(cart_hash_key) == '') {
            sessionStorage.removeItem('wc_fragments');
        }
    } catch(err){
        //console.log(err.message);
    }
});

2 Responses to “WooCommerce Widget Cart not updating information correctly”