Jump to content

Multistore: Automatic Store Selection Based On Browser Country Or Ip


stockw

Recommended Posts

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

  • 1 year later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...