Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Waqas Bin Hasan 4 days, 23 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
February 21, 2025 at 12:49 pm #16733665

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Our team checked and couldn't reproduce the issue. I then checked again and looks like it is working as expected. Please watch my screen recording hidden link

As you can see that I've even removed my location from the currency settings and by default I get prices in Euro (from shop till checkout).

Since we don't have a VPN providing UAE endpoints, we can manipulate the location by using define( 'WCML_GEOLOCATED_COUNTRY', 'AE' ); in wp-config.php and in this case we get the prices in AED.

Other than that, I have updated WPML plugins to the latest, deactivated caches and used my Maxmind key in your staging site, this however took some time to activate.

At this point we can only suggest the following:

- Since your site is behind cloudflare, you may need to check cloudflare configs or can probably try the following:

if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
    $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}

This however showed no impact when we tested on our side.

- You may update plugins to the latest in your site.
- Try generating a new Maxmind key and use it.
- Check with your server support if the geolocations are resolving correctly (i.e. checking any firewalls or securities or may want to disable it temporarily for testing).

February 24, 2025 at 7:54 am #16739214

nickyd-3

Thank you. I'll update you.

February 24, 2025 at 9:45 am #16739775

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, please take your time and let me know when you're ready.

February 24, 2025 at 12:23 pm #16740895

nickyd-3

Hi,

I talked to the server support, but as per them checkout pages are automatically excluded from Cloudflare. Also they asked if the plugin need a cookie to be whitelisted for this to work?

February 24, 2025 at 1:24 pm #16741229

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Please see https://wpml.org/documentation/support/browser-cookies-stored-wpml/ for the cookies stored by WPML.