[Resolved] Discount being automatically applied in second language
This thread is resolved. Here is a description of the problem and solution.
Problem: In the second language, orders are being applied a coupon discount that should not exist. Solution: If you're experiencing this issue, we recommend trying the following workaround until a permanent fix is released in future versions of WooCommerce Multilingual & Multicurrency: 1. Navigate to
If this solution does not resolve the issue, consider adjusting the order total by adding the amount without the discount, and then directly create a new order or update the existing one (without saving the new total). Please ensure that you have backed up your database before proceeding with any modifications.
Please note that this solution might be irrelevant, either because it's outdated or not applicable to your case. If this is the case, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
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.
Hello, my name is Andrey, and I am here to assist you further. Can you please provide more details about the issue you are facing now?
Additionally, can you confirm if the issue persists when you temporarily deactivate all plugins except for WPML and WooCommerce and use the default Storefront theme?
Before making any changes, please ensure you have backed up your database.
Hi, I tested without any other plugins in my local test env.
There are 2 issues currently. Both present only in admin dashboard in order edit/add.
First one:
- with multicurrency option of WPML if I add order in not default currency and don't have price set manually in single product then while adding product to new order in admin dashboard price is calculated with coupons.
Order total is correct, but single item prices are incorrect. You see in screen that price is 2200€, while in real price is 550€. 2200 is price in PLN (default currency).
- when editing order in second currency (so far when happened two times) when I changed status from Processing to Completed, with WPML addon installed commas from price eg if price was 357.32€, it became 35732€ .
Before we used Fox currency switcher and never had such issues.
After running some tests, I could not replicate the issue you mentioned. However, I might have missed certain conditions. To help me better understand the issue, I have created a fresh installation for you. Could you please help me on replicating the problem you are facing? I will send you a private message with an access link where you can provide further details.
I appreciate your patience. This issue will be addressed in future versions of WooCommerce Multilingual & Multicurrency.
In the meantime, you can try the following workaround:
– Go to \WCML_Multi_Currency_Orders::total_is_changed in wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-orders.php and edit the class-wcml-multi-currency-orders.php file
If the previous solution doesn't solve the issue, you can alternatively adjust the order total by adding the amount without the discount, and then directly create a new order or update the existing one (without saving the new total). I have attached a screenshot for your reference.
Before proceeding with any modifications, please ensure that you have backed up your database.
I can't reproduce second one (that it removes comma sometimes) right now, so maybe this fix also fixed that. I'll get back to you if comma remove issue will come back.
Thanks for your support!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.