This thread is resolved. Here is a description of the problem and solution.
Problem:
You need to update a stored exchange rate for a currency using an API call with WPML and WooCommerce Multilingual.
Solution:
1. WooCommerce Multilingual (WCML) settings are stored in the
wp_options
table, under the option name
_wcml_settings
. You can update the rate in that option with custom code.
2. Use the filter hook
wcml_exchange_rates
to set the exchange rate programmatically. For more details, refer to our documentation.
3. Alternatively, you can use a third-party plugin to update the exchange rate automatically from an API. However, please note that third-party plugins are not tested by us, so we cannot guarantee compatibility with WCML. For an example of such a plugin, see this article.
4. If you are not comfortable with coding, we recommend contacting one of our certified partners from this list: WPML Contractors.
If this solution doesn't look relevant, please open a new support ticket in our 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.
This topic contains 1 reply, has 2 voices.
Last updated by 1 year, 3 months ago.
Assisted by: Long Nguyen.