Home›Support›English Support›[Resolved] Orders created via the Klarna Checkout plugin get incorrect currency
[Resolved] Orders created via the Klarna Checkout plugin get incorrect currency
This thread is resolved. Here is a description of the problem and solution.
Problem:
When using Klarna Checkout and WooCommerce Multilingual, the prices in the secondary language are not processed correctly.
Solution:
This issue has already been escalated to our developers and will be resolved in a future release. There is a quick workaround fix that may help for the time being.
Open the file wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php
I am using the Klarna Checkout plugin and WPML / Woocommerce Multilingual (and multi-currency) to support my multi-language / multi-currency (WPML) webshop to receive multi-country payments (Klarna).
The default currency in my shop is EUR. Orders in EUR are processed just fine.
Orders in another currency (e.g. SEK) are not processed correctly. The order gets processed by the Klarna Checkout (and is registered correctly in their merchant portal), but when the order is actually registered in Woocommerce, the currency of all amounts suddenly changes to EUR. Like in order total is SEK 125, Woocommerce order total is EUR 125.
I have submitted this issue to Klarna as well, but as I noted a similar issue on this forum : https://wpml.org/forums/topic/showing-wrong-amount-for-other-currencies-in-multi-currency/ I was asking myself: Can it be that things still are not entirely compatible? When I look into Woocommerce Multilingual/Currencies I note "Klarna not supported" (and "Paypal Checkout not supported" so probably the same goes for Paypal....)
Thank you for contacting WPML support. I'll be happy to help you with this. I found that this issue has already been escalated to our developers. There is a quick workaround fix that may help for the time being.
Open the file wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php
My issue is resolved now.
I was struggling with this for about a day already because I suspected the Klarna Plugin. Will share the solution with Klarna as well.
I expect I have to re-apply the patch every time when I update WPML (until the patch is included)??
Hi,
I can see that a new WPML update has been released since the start of this tread. Can you advise whether the issue in this thread has been resolved with the new update or if we still have to change code manually?
I applied the fix as described.
I recently updated to WPML 4.3.6
The file with the fix was (logically) overwritten with the new one (belonging to the new version.
I do not have the issue anymore.
So that makes me conclude the issue is fixed in one of the last releases of WPML