I'm having an issue with Woocommerce+WPML+Product Addons. When trying to edit an order in the admin, the additional cost of the Product Addon is removed.
To replicate the issue on your sandbox go to: hidden link and add some text to the add on input field. Then add to basket. Proceed to checkout and place the order entirely.
In the admin go to the order, change the status to hold in order to be able to edit the order.
When trying to add an extra product to the order, the price of the add on is removed.
Here is a video: hidden link
I do have some feedback. We have a possible workaround but it is to be used with caution and to be thoroughly tested by you. It is provided "as is".
At the moment, it looks like this is only happening when multicurrency is enabled. The development team is evaluating how to best approach any "fix" to this issue as a fix could cause more problems than it solves at this point for the larger client base.
Here is the workaround:
In file wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-orders.php::set_converted_totals_for_item on line 348
I really don't have the time to set it up again. It did use a significant amount of time on the last time. Just use multi currency and multi language and the product add-on plugins.
I also have a Dev site I would be happy to give access to.
I setup the same example on a new sandbox site WITH the recommended changes: hidden link
The issue is resolved there.
Please confirm this yourself.
Is the development site available for me to apply the same code changes there?
It may be that your site has a compatibility issue with yet another plugin.
Please advise if you are able to confirm the fix on the sandbox site or not.
I just tested and the issue remains. Try and edit ordre 109. Add another Polo to the order and the add-on fee disappears.
What I changed was I installed the Danish language and made DK the default site. Translated the Polo product and made sure to input the price manually (no automatic currency exchange)