WPML
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.


  1. Open your /wp-content/plugins/woocommerce-multilingual/classes/multi-currency/geolocation/Geolocation.php file

  2. Look for line 49.

  3. Replace:
    			wp_cache_add( $key, $country, __CLASS__ );


  4. With:
    			if ($country === "") {
    				$country = false;
    			}
    			wp_cache_add( $key, $country, __CLASS__ );

All known issues →