Hi!

Is it possible to change the default country to what the users country is based on IP address?

Comments

daffodilsoftware’s picture

StatusFileSize
new1.81 KB

Hi
We have created a patch for this please test it.

ckng’s picture

Status: Active » Needs work

Was assuming any patch for this functionality will integrate with existing modules, which are already crowded in d.o, instead of baking something directly inside this module. Also would prefer a sub-module as I believe > 95% users do not need this functionality.
FYI, ip->country modules:
* http://drupal.org/project/ip2cc
* http://drupal.org/project/geoip
* http://drupal.org/project/geouser
* http://drupal.org/project/hostip
* http://drupal.org/project/ip2nation
* http://drupal.org/project/ip2country

daffodilsoftware’s picture

StatusFileSize
new1.22 KB

Hello cursor and Chin Kiong,
I created a submodule of cck_phone to locate country code based on ip address. Please review it. It depends upon IP-based Determination of a Visitor's Country Module.

daffodilsoftware’s picture

StatusFileSize
new1.21 KB

Please ignore the first file and check this one.

cursor’s picture

Thanks. Will check in and let you know how it works.

daffodilsoftware’s picture

Hi cursor
Were you able to test this?
If yes then please provide feedback