Home›Support›English Support›[Resolved] Fix the bug of the multi currency plugin when increasing no of item in the cart then decreasing the ...
[Resolved] Fix the bug of the multi currency plugin when increasing no of item in the cart then decreasing the ...
This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing issues with incorrect discount calculations when adjusting item quantities in your cart while using the Multi-currency plugin alongside the Flycart plugin. The discount fails to apply correctly when the item quantity is decreased from three to two. Solution: 1. Verify if the issue persists by replicating it in a controlled environment. We have set up a minimal WordPress installation for you to test this scenario. Access it here: Test Environment. 2. Check the Flycart documentation for any compatibility issues with WPML, especially regarding multi-currency setups. You can find the documentation here: https://docs.flycart.org/en/articles/2428478-compatibility-wpml. 3. If the problem persists, contact the Flycart plugin author to report the issue, as they might need to adjust the plugin for better compatibility with WPML's Multi-currency feature.
Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, 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 needed, do not hesitate to open a new support ticket with us for further assistance at WPML Support Forum.
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 was trying to use the Multi-currency plugin with a discount setup in the Flycart plugin, where 2 items get 15% off and 3 items get 25% off. I added an item to the cart, increased the quantity to 2 and 3, and then decreased it back to 2. The issue can be seen on this page: hidden link.
Symptoms:
When I decrease the item quantity from 3 to 2 with the Multi-currency plugin enabled, the discount and price are incorrect. Only 1 item is discounted, and 1 is at the original price. Without the Multi-currency plugin, this problem does not occur.
Questions:
Why does the discount calculation fail when decreasing the item quantity with the Multi-currency plugin enabled?
How can I fix the incorrect discount issue when using the Multi-currency plugin?
I have tried to setup the plugin for you to test.
Because we bough the plugin license which provide only 1 site.
I originally want to edit the DB to help installing the plugin for test but I cannot modify the database. It said the DB is protected.
So, what should we do to install the plugin for you to test?
We have successfully setup the sandbox with the problem described before.
Multicurrency setup there, when using the coupon, 2 for 15% off, 3 for 25% off.
Step:
1. add an item to the cart with quantity 1
2. go to the cart
3. apply the code vloveu
4. add item to 2, get 15% off -> correct
5. add item to 3, get 25% off -> correct
6. reduce item to 2 -> only 1 item get 15% off
without multicurrency setup, it is normal.
It is for your inspection.
We suspect it is related to the javascript or ajax update. Just for your reference.
thanks for getting back and taking the time to reproduce this.
I have checked further on this and tried a few options but seems that does not work.
I can also see they have an option inside the plugin for this case: "Add additional compatible for WPML (Multi-Currency)", so I guess they are aware of this issue and have had this checkbox for this.
The best I can advise is to report to the plugin author that this mode is not working correctly in specific cases and they would need to revise it since it has been added from our side and we are not aware of how this works. If they need our help they can join our GoGlobal program and we would be glad to help and collaborate further in making their plugin officially compatible with WPML.
Hello, thanks for your suggestions, we have reached Flycart again and waiting for their reply. We will update once we have received any news from them and might need your side for further assistance.