I have an e-shop in two languages: English and Polish. When I log into a new user account in the English version, the account is in English, and when I click the “Go to store” button, I’m taken back to the English version of the shop - everything works fine here.
However, when I log into a new user account from the Polish version of the shop, the account is in Polish, which is correct. But when I click the “Go to store” button, it redirects me to the English version of the shop. I then have to manually switch back to Polish.
This is Richard at PageFly - Shopify Advanced Page Builder app.
It seems there’s a discrepancy in the language redirection process when users log in from the Polish version of your e-shop. The system is incorrectly redirecting them to the English version.
Potential Solutions:
Check Language Cookies:
Inspect Cookies: Use your browser’s developer tools to inspect the cookies set when a user logs in from the Polish version.
Verify Language Preference: Ensure the cookie storing the language preference is set correctly to Polish.
Clear Cookies: If the cookie is incorrect, try clearing the user’s cookies and testing again.
Review Redirection Logic:
Inspect Code: Examine the code responsible for redirecting users after login.
Language Detection: Verify that the code is correctly detecting the user’s preferred language based on the language of the login page.
Redirection Based on Language: Ensure the redirection logic is set up to redirect users to the corresponding language version of the shop based on their preferred language.
Test with Different Browsers:
Try logging in from different browsers (e.g., Chrome, Firefox, Edge) to see if the issue persists. This can help isolate browser-specific problems.
Check Shopify App Settings:
If you’re using any Shopify apps that might affect language settings or redirects, review their settings and ensure they’re configured correctly.
Consult Shopify Support:
If you’ve exhausted these troubleshooting steps, reach out to Shopify’s support team for further assistance. They can provide more specific guidance based on your e-shop’s setup and configuration.