Problem: If you're experiencing an issue where your site switches from English to German when adding a product to the cart, but the 'go to cart' bar remains in English, we can help. Solution: First, ensure that your WPML plugin and all related add-ons are updated to the latest version, currently 4.7.1. You can check for the latest versions and update instructions on WPML's installation guide. Next, try changing the language URL format to 'Different languages in directories' by navigating to WPML → Languages → Language URL format in your site's backend. This adjustment might help maintain the desired language when adding items to your cart. Remember to back up your database before making any changes to prevent data loss.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues on WPML's known issues page. Also, confirm that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket with us for further assistance.
Problem: The client is trying to configure the Swish payment gateway to only be shown for Swedish language users on their site and to allow payments in SEK while ordering in Euro. However, they encountered an issue where Swish is not supported for different currencies at checkout, and they received an error message 'AM03 - Invalid or missing currency' when attempting to pay with Swish on the English version of the site. Solution: We recommend setting SEK as a second currency in WooCommerce > WooCommerce Multilingual & Multi-Currency and making it the default currency for the Swedish site language. Additionally, you should exclude SEK from being available in other active languages to prevent the error. For more detailed guidance, please read our documentation on WooCommerce Multilingual & Multi-Currency. If you need to exclude the Swish payment gateway for non-Swedish languages, the plugin author would need to participate in our Go Global Program.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, please open a new support ticket.
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.