[Resolved] Problem on order change status with multicurrency
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing an issue where the price in the secondary currency (US dollar) is incorrect when updating the order status from processing to completed, and it seems to ignore the dot in the exchange rate, resulting in incorrect price calculations. Solution: We recommend updating your WooCommerce Multilingual & Multicurrency plugin to the latest version, 5.5.0, which includes bug fixes and improvements that might resolve this issue. You can find the latest version under My Account -> Downloads on our website. For instructions on how to update, please visit http://wpml.org/faq/install-wpml/. If you do not see the updates available, try clicking the "Check for updates" button in the Plugins → Add New Plugin → Commercial tab. After updating, if the problem still occurs, we suggest trying to replicate the issue on a test installation. Please ensure to back up your database before proceeding.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum for further assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I have enabled multicurrency with a manual exchange rate in my WordPress site using WPML. I am testing the functionality by placing orders. The default currency is set to euro, and US dollar is the secondary currency. The manual exchange rate is set to 1.084. I am experiencing an issue when updating the order status from processing to completed. The issue can be seen on this page: hidden link
Symptoms:
When I update the order status from processing to completed, the price in the secondary currency (US dollar) is incorrect. It seems to ignore the dot in the exchange rate. For example, a product with a default price of 100€ shows as 112$ in the processing order email but changes to 1084$ in the completed order email and in the WooCommerce admin order edit page.
Questions:
Why does the price change incorrectly when the order status is updated from processing to completed?
How can I ensure the exchange rate is applied correctly in all order statuses?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.
Please try using a comma, instead of a dot.
Instead of using 1.084 for the exchange rate, use 1,084. Let me know if that fixes it.
If that does not help, one of my colleagues will soon come to continue support.
I only have the basic plugins enabled and a default wordpress theme, also I have the taxes calculation option disabled. Also in the path you provided there is no line like the one you mentioned. Please have a look at the file you mentioned and tell me again what I need to do.
The ticket you metioned is from a year before, many updates since then.
We have just released WooCommerce Multilingual & Multicurrency version 5.5.0. Please update your WCML plugin to take advantage of the latest bug fixes and improvements.
You can check the latest released versions under "My Account -> Downloads" on our website. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.
If you do not see the updates, you may need to click the "Check for updates" button in the Plugins → Add New Plugin → Commercial tab.
If the issue persists after performing the update, could you please try to replicate the problem on our test installation? I have created this installation for you, and you will find the details in the following private reply.
Please remember to back up your database before proceeding.