Chuyển đến nội dung Chuyển đến thanh bên

Open

Topic Tags: Compatibility

Overview of the issue

There is a known issue with the Porto theme where the currency reverts to the default when the item quantity is updated via the cart widget.

Workaround

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

  • Open the theme’s functions.php file.
  • Add the following code:
    // WPML Workaround for compsupp-7573
    add_filter( 'wcml_multi_currency_ajax_actions', 'wpml_compsupp7573_add_action_to_multi_currency_ajax', 10, 1 );
     
    function wpml_compsupp7573_add_action_to_multi_currency_ajax( $ajax_actions ) { 
        $ajax_actions[] = 'porto_update_cart_item'; // Add a AJAX action to the array
        return $ajax_actions; 
    }
    

Để lại trả lời

Vui lòng giữ đúng chủ đề và tôn trọng người khác. Nếu bạn cần trợ giúp với các vấn đề không liên quan đến bài đăng này, hãy sử dụng Diễn đàn Hỗ trợ của chúng tôi để bắt đầu trò chuyện hoặc gửi vé hỗ trợ.

Bạn có thể sử dụng các thẻ này:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>