SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2012
    Location
    England
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question IP Detection - How do I should different prices depending on IP?

    Hello,

    We have a Wordpress site that where we want to show our prices in the local currency depending on where they are from. I was told it has to do with IP detection.

    I don't know where to start on something like this and at the very least, I am looking for some direction as to what questions to ask when hiring a freelancer. How do you do this?

    Cheers,

    Dave

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,169
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    Hmmm. Might it not be better and easier to use the HTTP Accept-Language headers?

  3. #3
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    I found this plugin with a google search:

    http://wordpress.org/extend/plugins/localcurrency/
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2012
    Location
    England
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mittineague View Post
    Hmmm. Might it not be better and easier to use the HTTP Accept-Language headers?
    I have no idea how that would work...what would the benefits and/or limitations be?

    Thanks!

    Dave

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,169
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)
    My thinking was that there would be less languages than IPs and IPs are those of the ISP not necessarily the user's country.

    As for easier, scratch that. If there's a plugin all ready to drop in, it can't get much easier than that.

    I was later wondering if the language code would necessarily reflect the user's country accurately.

    So I guess the best would be to use the IP based plugin and if it doesn't initially show the user's currency provide a way to switch to it, which the plugin does.
    Allows visitors to change their currency via a selection box
    So if it works you should be good to go


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •