Okay
  Public Ticket #1400318
WPML: Cart preview not fully translated?
Closed

Comments

  •  3
    allexarh started the conversation

    Hi,

    My website is in 2 languages (english and romanian). When I use it in romanian, after I add a product to the cart and click the small cart at the right of the menu, the cart preview window appears. The problem is that the product titles appear in english and not in romanian (print screen attached). How do I fix it?

    Alex

    {"wp":{"use":false,"adminUrl":"plantingpuzzle.com/wp-admin","username":"","password":""},"ftp":{"use":false,"url":"","port":"","user":"","password":"","path":""}}

  • [deleted] replied

    Hi Alex,

    I have been troubleshooting the issue and realized WPML may not behave correctly to address this issue for the following reasons:

    1. Our theme loads cart fragments based on what WooCommerce has set:

    if ( sessionStorage ) {
        var fragments = null;
        
        if ( wc_cart_fragments_params && wc_cart_fragments_params.fragment_name ) {
            fragments = $.parseJSON( sessionStorage.getItem( wc_cart_fragments_params.fragment_name ) );
        }
        
        if ( fragments ) {
            miniCartUpdate( fragments );
        }
    }

    2. Whenever when the language is switched, its up to WPML to refresh the sessionStorage set by WooCommerce and restore the current language.

    I suggest you to contact WPML to check about this issue.