We are using the WPML Multilingual & Multicurrency for WooCommerce plugin (we noticed that plugin offers additional paid commercial upgrades or support through wpml.org) and need a small but important adjustment for consistency when saving prices for simple products and variations.
Specifically:
• File: inc/currencies/class-wcml-custom-prices.php
• Method: sync_product_variations_custom_prices
• At the end of this method, after the update, we would need to add the following action:
We have tried various workarounds, but nothing has been reliable enough to hook into.
This action is necessary for us because we have a plugin that tracks price history, which is required by law in Croatia. Without this action here, it’s not possible to properly capture the price changes for variations.
Before I can escalate this ticket to our 2nd tier of support, we need to be able to run the change requested in a sandbox site. I have created a sandbox site with a fresh new WordPress + WPML + WooCoommerce installation, and I kindly ask you to:
- Access the sandbox site using this link: hidden link
- Finish the WooCommerce + WooCommerce Multilingual configuration
- Add the change to the code
- Check if there are no errors
If everything works correctly, then I will create a copy of the sandbox site and escalate this ticket to our 2nd tier of support.
Thank you very much for applying the workaround on the sandbox site.
I have escalated this ticket to our 2nd tier of support, where our specialists will analyze this workaround. I will get back to you as soon as I get an answer from them.