Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client has a bilingual website (Dutch and German) and wants to redirect users to the language version of the site based on the country they have indicated in their account upon login.
Solution:
We informed the client that the feature they are requesting is not currently available in WPML. We suggested that achieving this functionality would require custom coding, which is beyond the scope of our support services. However, we provided links to the WPML coding API and hooks reference for guidance if the client decides to pursue custom coding:

Please note that this solution might not be relevant if it's outdated or not applicable to your case. If you need further assistance, we highly recommend checking the related 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.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Andrey 1 year ago.

Assisted by: Andrey.

Author Posts
January 30, 2024 at 2:47 pm #15244651

joepv

We have a website with 2 languages, Dutch and German. When new users register, they must indicate which country they come from.

We are now encountering a problem in which German customers can log in to the Dutch version of the website and order Dutch products via their German account.

So now I am looking for a way to ensure that even when German customers log in to the Dutch version of the website, they are redirected to the German version. So to the country indicated in their account.

Thank you in advance

January 30, 2024 at 8:47 pm #15246476

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

I am afraid the feature you are looking for is not currently available in WPML. I understand that this might be disappointing news, but we want to be transparent with you and inform you that creating a script for this feature would require custom coding, which falls outside the scope of our support.

I apologize for any inconvenience this might cause you. I want to assure you that we are always working hard to improve our services and add new features to WPML.

If you are looking for WPML coding API, it can be found here:
https://wpml.org/documentation/support/wpml-coding-api/
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/