跳过导航

Waiting for author

Topic Tags: Compatibility, WCML

Overview of the issue

When using WPML with Betheme and WooCommerce Multilingual, the product quick view popup does not display the selected currency. Instead, it shows the default currency even when another currency is selected. The rest of the site correctly reflects the chosen currency.

Workaround

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

  • Open your theme’s functions.php file.
  • Add the following snippet:
    // WPML Workaround for compsupp-7826 
    add_filter( 'wcml_multi_currency_ajax_actions', 'add_action_to_multi_currency_ajax', 10, 1 );
     
    function add_action_to_multi_currency_ajax( $ajax_actions ) {
     
        $ajax_actions[] = 'mfnproductquickview'; 
        return $ajax_actions;
     
    }
            

留下回复

紧扣主题并尊重他人。如果您需要帮助解决与本帖无关的问题,请使用我们的 Support Forum 开始聊天或提交票据。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>