To add redirection based on user’s country, device, and first login, you can use PrestaShop redirection module. It can be set up within minutes. Once activated, go to its general settings and activate the module. Now, go to Login Settings and add Redirection URL. Once added, enable First Time Login Redirection, Country Selection for Login, and Device Selection for Login. Add preferred countries and devices, and from now on, users matching these criteria will be redirected to the selected URL. You can apply same rules for Logout and Registration. Follow these steps to understand the process more clearly:
1. Install the module and go to its general settings; enable Addify Redirect. Now, from the above menu bar, select Login Settings. Here you can configure redirection rules only after user’s login.
2. Now, either add a redirection URL for all customers or select specific ones by enabling Specific Customer Group Redirection.
3. Once selected, add redirection URL as:
- Home URL
- Custom URL
- Previous URL
- Default URL
4. Now, scroll down and enable first-time login redirection to redirect new buyers to selected URL.
5. Enable Country Selection for Login and add specific countries to redirect users according to their location
6. Now enable Device Selection for Login and select device types as:
- Pc/ Laptop
- Tablet
- Mobile
7. If you want to add country/device-based redirection after logout or registration, then click on Logout/ Registration Settings.
