Skip Navigation

Open

Reported for: WooCommerce Multilingual & Multicurrency 5.4.0

Overview of the issue

When using B2B for WooCommerce and WooCommerce Multilingual (WCML) with the multicurrency feature enabled, adding a product to an existing order in the admin panel causes the newly added item to be removed immediately after saving.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-orders.php file.
  • Look for line 253.
  • Replace:
    $order->remove_item( $itemId );
            
  • With:
    //$order->remove_item( $itemId );
            

2 Responses to “B2B for WooCommerce - Product Removed When Adding Items to Existing Order”

  1. I just made the change to the requested file and afterwards tested on my live site and it seems that the function is working again 🙂

    So problem is fixed, thanks a lot!

    However wouldn’t this change be overwritten when updating the plugin next time?

    • Hi Marc,

      Great to hear the issue has been resolved! The fix will be included in the next release, and we’ll make sure to keep this page updated.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>