WPML
状态
已解决
报告针对
WPML Multilingual & Multicurrency for WooCommerce 4.10.4
解决于
4.12.0

问题概述

如果您使用 WooCommerce Bundled Products 插件手动创建包含捆绑产品的订单,这些被捆绑产品的价格将是其实际的产品价格,并会添加到捆绑包产品的价格之上。

临时解决方法

我们的开发人员正在修复此问题,在此期间:


  • 对您的站点进行完整备份。

  • 编辑文件 wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-orders.php。

  • 找到第 337 行。

  • 替换:
        foreach ( array_keys( $converted_totals ) as $key ) {
        	if ( 'total' === $key && $item->get_total() !== $item->get_subtotal() ) {


  • 替换为:
    foreach ( array_keys( $converted_totals ) as $key ) {
    	if ( ! $item->get_total() ) {
    		continue;
    	}
    	if ( 'total' === $key && $item->get_total() !== $item->get_subtotal() ) {

所有已知问题 →