This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs a dedicated French (Morocco) version of their WooCommerce site with unique pricing in MAD for Moroccan visitors. They are considering using geolocation-based redirection or dynamic currency switching with WPML while using caching plugins like WP Rocket, but are concerned about compatibility issues.
Solution:
We recommend using the "Currency by Location" feature of "WooCommerce Multilingual & Multi-Currency", which works with the Geolocation feature of WooCommerce. This requires a MaxMind API key, which can be set up following the guide at https://woocommerce.com/document/maxmind-geolocation-integration/. Note that this feature only works for logged-in users.
Additionally, you can use the wcml_geolocation_get_user_country filter hook to override the default geolocated country based on the billing or shipping address instead of the IP address.
If this solution does not fully address your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML 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 2 replies, has 1 voice.
Last updated by 4 days, 22 hours ago.
Assisted by: Andreas W..