Thymotep Posted December 14, 2017 Share Posted December 14, 2017 Hello guys, I post this message because I am stuck on a development that has the base seemed uncomplicated. I have a PrestaShop 1.6 with two shops. The first corresponds to North America (USA, Canada) and the second corresponds to Europe. I did not find anything in the back office to automatically redirect the user to a specific shop, depending on his country. If it's possible, do not hesitate to explain to me how. So I tried to develop that on my side, but nothing to do, I can not find the right file to do that. I tried in: config/config.inc.php, I can differentiate the country from the client with GeoIP, but it is not appropriate to modify this file. So I try to modify the initialize function of the Shop class. But at this point, I am already redirected to my "shop" by default. I see in the .htaccess that there are the records of my two shops, would it be he who does the redirection, stupidly, in the order of presence in this file? If it is, it is problematic. In any case, I take any help, or track to be able to redirect to the right shop, depending on the country. Thank you, Thymotep Link to comment Share on other sites More sharing options...
joseantgv Posted December 14, 2017 Share Posted December 14, 2017 (edited) If you are looking for a paid module, check this one https://addons.prestashop.com/en/international-localization/7363-auto-change-language-and-currency-geolocation.html Edited January 27, 2018 by joseantgv (see edit history) Link to comment Share on other sites More sharing options...
ozdemir Posted January 26, 2018 Share Posted January 26, 2018 Check this plugin, https://www.prestashop.com/forums/topic/289220-module-location-detection-for-prestashop/ i used this plugin for my old project. It was very useful. But im not sure still active or continue developer support. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now