- Status
- Resolved
- Reported for
- WPML Multilingual & Multicurrency for WooCommerce 4.12.4
- Resolved in
- WooCommerce Multilingual 4.12.5
Overview of the issue
WPML Multilingual & Multicurrency for WooCommerce allows you to set currencies according to the user geolocation. However, since the latest changes in WooCommerce 6.1.0, this feature is not working properly.
Workaround
Please, make a full backup of your site before proceeding.
- Open your /wp-content/plugins/woocommerce-multilingual/classes/multi-currency/geolocation/Geolocation.php file
- Look for line 49.
- Replace:
wp_cache_add( $key, $country, __CLASS__ );
- With:
if ($country === "") { $country = false; } wp_cache_add( $key, $country, __CLASS__ );