stockw Posted February 19, 2016 Share Posted February 19, 2016 Hi, i've got a prestashop installation with 3 stores. The stores created are: Europe (www.mysite.com/eu), N.America (www.mysite.com/us), Asia (www.mysite.com/as). In Europe i've got all Europe countries, in N.America all the N.America countries and so on... I'd like that if a user is on the website from France, the store is the Europe one, if the user is from jampan, the store is the Asia one. Any suggestions? Thanx! Link to comment Share on other sites More sharing options...
Lesielle Posted June 20, 2017 Share Posted June 20, 2017 Hi, i've got a prestashop installation with 3 stores. The stores created are: Europe (www.mysite.com/eu), N.America (www.mysite.com/us), Asia (www.mysite.com/as). In Europe i've got all Europe countries, in N.America all the N.America countries and so on... I'd like that if a user is on the website from France, the store is the Europe one, if the user is from jampan, the store is the Asia one. Any suggestions? Thanx! Did you solved it? I am facing the same problem... Thanks Link to comment Share on other sites More sharing options...
SmartPlugs Posted June 20, 2017 Share Posted June 20, 2017 I know Varnish cache adds a HTTP_X_COUNTRY_CODE in $_SERVER that directly provides the iso country code. I also tryed a PHP library called geoiploc but as i remember it does not handle IPV6. Hope it helps ! Link to comment Share on other sites More sharing options...
SmartPlugs Posted June 20, 2017 Share Posted June 20, 2017 Obviously, once you know the visitor country, there are many solutions to achieve your goal. Link to comment Share on other sites More sharing options...
Lesielle Posted June 20, 2017 Share Posted June 20, 2017 I know Varnish cache adds a HTTP_X_COUNTRY_CODE in $_SERVER that directly provides the iso country code. I also tryed a PHP library called geoiploc but as i remember it does not handle IPV6. Hope it helps ! Obviously, once you know the visitor country, there are many solutions to achieve your goal. Hi, thanks for your help. I am not developper so it seems a little bit complex for me. Any step-by-sep guide i can use? Thanks 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