Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Auto detect locale?

  1. #1
    phdm3 is offline Junior Member
    Join Date
    Mar 2011
    Posts
    7

    Default Auto detect locale?

    I am considering adding local currencies to my site. Does the site somehow detect that someone is in the Euro zone or Australia and automatically show their local currency instead of USD?

  2. #2
    webopius is offline Senior Member
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    440

    Default

    Hi

    Yes, you can do this using a GeoIP database (such as the Maxmind geoip system), these claim to be 99.5% accurate to a country level.

    1. Write a small code wrapper that takes an IP address and returns the Country code
    2. Embed this code into your site to auto-switch the locale if it differs from the current locale