Wrong prices when adding multiple quantity items to existing order
-
Hi!
There seems to be an issue adding items to an order when the woocommerce-multilingual multi currency mode is enabled.
This concerns only items with multiple quantities.
For example a product with the price of 10 €:
– Add this product to existing order and set the quantity to 3
– The cost is now calculated (10 * 3) = 30€?– tax
– The row total is 30 * 3 = 90€ – taxWhereas it should be 10€ – tax and 30€ – tax respectively.
The problem can be reproduced on a clean woocommerce-multilingual setup with “multi currency” mode enabled.
Note: adding the product first and then incrementing the quantity works as expected.
I can narrow the problem down to:
WCML_Multi_Currency_Orders::set_converted_totals_for_item()
as disabling the filter:
add_filter( 'woocommerce_order_get_items', array( $this, 'set_totals_for_order_items' ) );
fixes the issue.
Could you please take a look at this?
- The topic ‘Wrong prices when adding multiple quantity items to existing order’ is closed to new replies.