Background of the issue:
I am trying to use Multilingual & Multicurrency for WooCommerce with Barn2 WooCommerce Product Options. I noticed an issue on my staging site, which can be seen at hidden link.
Symptoms:
When I activate Multilingual & Multicurrency for WooCommerce with Barn2 WooCommerce Product Options, the prices for the options disappear after ordering. Prices are continuously added together until the customer clicks the order button, and these additional prices are not included in the order confirmation. I expected the price after ordering to include the additional options, but instead, I got the price without them.
Questions:
Why do the option prices disappear after ordering?
How can I ensure the additional option prices are included in the order confirmation?
Your issue was escalated and is under analysis. I'll get back to you, once I have new information, what usually takes a few days. Thank you for your patience so far.
We've escalated this issue internally and also contacted the developers of the Barn2 plugins. However, since we weren’t able to reproduce the issue on a clean test site (Sandbox), the problem appears to be specific to your website’s configuration.
To move forward, we recommend that you also contact the Barn2 support team directly. Since both plugins involved are developed by Barn2 and are officially compatible with WPML, their insights will be crucial. They may request a site copy to investigate further, so we suggest sharing the package with them as well.
Let us know if you need help preparing that or if you receive any updates from their side.
Our development team reesponded. Given the complexity of WPML, WPML’s support team have kindly agreed to support Barn2’s customers in using it to translate our plugins. That’s because they are much more familiar with WPML than we are and can make sure you have configured it correctly. If they discover that it’s a compatibility issue rather than a setup issue, then they will liaise with our developers directly to find a solution.
As a result, please could you reach out to WPML Support again and ask them what they found? They can ask anything from us if they see something unusual during their invesitgation.
Both we and Barn2's team are checking the issue. Meanwhile, we found a workaround. Please ensure to have a backup and add this code to your functions.php file: