Skip Navigation

Resolved

Reported for: WooCommerce Multilingual & Multicurrency 4.12.4

Resolved in: WooCommerce Multilingual 4.12.5

Overview of the issue

WooCommerce Multilingual 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__ );