- สถานะ
- แก้ไขแล้ว
- รายงานสำหรับ
- 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() ) {