- Stato
- Risolto
- Segnalato per
- WPML Multilingual & Multicurrency for WooCommerce 4.10.4
- Risolto in
- 4.12.0
Panoramica del problema
Se crei un ordine manuale che include un prodotto in bundle utilizzando il plugin WooCommerce Bundled Products, i prezzi dei prodotti in bundle sono i prezzi reali dei prodotti e vengono aggiunti ai prezzi del prodotto bundle.
Soluzione alternativa
I nostri sviluppatori stanno lavorando per risolvere questo problema, nel frattempo:
- Fai un backup completo del tuo sito.
- Modifica il file wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-orders.php.
- Trova la riga 337.
- Sostituisci:
foreach ( array_keys( $converted_totals ) as $key ) { if ( 'total' === $key && $item->get_total() !== $item->get_subtotal() ) { - Con:
foreach ( array_keys( $converted_totals ) as $key ) { if ( ! $item->get_total() ) { continue; } if ( 'total' === $key && $item->get_total() !== $item->get_subtotal() ) {