跳过导航

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using the Flux Checkout for WooCommerce plugin from Iconic, messages displayed on the checkout page are not properly filtered by language. All messages from all languages appear regardless of the selected language in the checkout.

Workaround

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

  • Open the …/wp-content/plugins/flux-checkout/inc/class-checkout-elements.php file.
  • Look for line 418.
  • Replace:
    		$args = array(
    			'post_type'      => self::$post_type_key,
    			'posts_per_page' => 100,
    			'post_status'    => 'publish',
    		);
    
    		$checkout_elements_posts = get_posts( $args );
    
  • With:
    // WPML Workaround for compsupp-7760
    		$args = array(
    			'post_type'      => self::$post_type_key,
    			'posts_per_page' => 100,
    			'post_status'    => 'publish',
    			'suppress_filters'    => false,
    		);
    
    		$checkout_elements_posts = get_posts( $args );
    

留下回复

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

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