Bug with WCML when default language currency has price adjustment
-
If you use this plugin together with WCML and the default language has a price adjustment configured, the prices are incorrect when triggered through cron/action-scheduler.
Lets say you have a webshop with default language Swedish, but your enter prices in EUR, and have an exchange rate of 1 EUR = 10 SEK set.
First off all, when updating through the admin UI, everything works. However when you update with cron, WCML will detect the default language currency (SEK) and
get_post_metadata
hook will modify the_price
meta. What we need to do is switch the currency, same as the plugin does with switching the language.Attached patch https://gist.github.com/oxyc/c5cd1e15ae1e74226ed4b6e770ee2842
- The topic ‘Bug with WCML when default language currency has price adjustment’ is closed to new replies.