• Resolved noxstyle

    (@noxstyle)


    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€ – tax

    Whereas 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello and thank you for reporting that issue.
    I will check it out.

    I have verified the issue and escalated it to our developers.

    Thank you very much for reporting it!

    Is there any update on this issue? It seems I have similar issue with the lastes WooCommerce and WooCommerce Multilingual. Prices seem to be multiplied twice. I’ve set conversion rate to 3x, but prices are multiplied 9x.

    Hello @chodorowicz
    I tested this in a clean install with the latest versions of WooCommerce Multilingual, WooCommerce,WordPress and WPML plugins and its addons and I was unable to reproduce the issue.
    The issue that is reported here should be resolved since WooCommerce Multilingual version 4.5.0

    Please update your plugins and re-test

    *Don’t forget to create a backup first or test on a staging site.

    Hey George!

    I’m using all the latest version

    WooCommerce 3.6.3
    WooCommerce Multilingual 4.6.2.1
    WPML Multilingual CMS 4.2.6
    WordPress 5.2

    Unfortunately my theme is quite outdated since the author is not providing any updated to it. Do you think some function the theme could cause this behavior?

    My issue is even more prominent that the one from original poster, since all the prices, also single quantities, even before adding them to the cart are multiplied two times by currency multiplier.

    Hello again @chodorowicz
    The theme COULD be also responsible.
    You can try and set-up a staging site and do a test with a theme like Storefront or default themes.
    If you have still issues, you can open a ticket in our support forum at wpml.org where we can help you debug the problem further, by exchanging securely access credentials for your site, or a clone of your site so that we can test without affecting your live site.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong prices when adding multiple quantity items to existing order’ is closed to new replies.