- ステータス
- 解決済み
- 報告対象
- 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() ) {