Before someone gets upset that I haven't included code, please understand that it is because I am not sure what the best practice would be.
I have a site that operates in 3 cities specifically, and also a nation-wide version. This is an eCommerce site that has different subdomains (essentially 3 different sites, but the ability to manage products specifically based on location.)
What I need is for the user to select their city or location preference (say New York, Chicago, Detroit or Entire US) and have that information stored so that the next time they return they don't have to reselect their preferred location.
Of course, for UX purposes the ability to change location is available in a Top Nav menu bar should they temporarily be in the other city.
Can IPs be targeted accurately to exact city? Should this be automated or should they be able to choose?
My question is : What is the best practice for this? Are there any consequences to this setup? What should be used? JavaScript? JQuery? PHP?
If there are no major negatives, where should I start to implement this?