- 状态
- 已由作者解决
- 相关插件/主题
- Flux Checkout
- 主题标签
- Compatibility
问题概述
使用 Iconic 的 Flux Checkout for WooCommerce 插件时,结账页面上显示的消息无法按语言正确筛选。无论在结账时选择了哪种语言,来自所有语言的所有消息都会显示。
临时解决方法
在继续操作之前,请确保已对您的站点进行完整的站点备份。
- 打开 …/wp-content/plugins/flux-checkout/inc/class-checkout-elements.php 文件。
- 找到第 418 行。
- 替换:
$args = array( 'post_type' => self::$post_type_key, 'posts_per_page' => 100, 'post_status' => 'publish', ); $checkout_elements_posts = get_posts( $args );
- 替换为:
// 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 );