Page 1 of 1

GEO IP support

Posted: Tue May 12, 2009 5:09 am
by mazhar
This sample integration makes use of http://geoiptool.com/ service to find out the GEO information about customer. In order to install package, first extract zip file and then place files into your website folder in very same directory structure. Once you are finished with installation, you will see a details link near customer IP address on your vieworder.aspx page. Holding mouse over details link will bring a pop up with customers GEO information. Please check screen shots

Re: GEO IP support

Posted: Tue May 12, 2009 6:48 am
by batmike
Works great! Thanks for the add-on.

Does the flag image work currently? I'm assuming it's returned with the Geo request but it's trying to pull the flag image from my domain at /flags/countryname


Not really important; just curious.


Thanks again!
Mike

Re: GEO IP support

Posted: Tue May 12, 2009 6:54 am
by mazhar
Thanks for review. I will check about flag issue and if possible will update the fix.

Re: GEO IP support

Posted: Tue May 12, 2009 6:55 am
by mazhar
Also some scripts are available here
http://geoiptool.com/en/webtools/
You can place those scripts into your store scriptlets to let your customer now what is their location.

Re: GEO IP support

Posted: Tue May 12, 2009 7:06 am
by mazhar
Does the flag image work currently? I'm assuming it's returned with the Geo request but it's trying to pull the flag image from my domain at /flags/countryname
This problem is fixed and I have updated the above attached package.

Re: GEO IP support

Posted: Tue May 12, 2009 7:12 am
by batmike
Quick work :D

All works great now. Thanks!

Mike

Re: GEO IP support

Posted: Tue May 12, 2009 7:15 am
by mazhar
Again thanks for fix confirmation :D

Re: GEO IP support

Posted: Fri Nov 05, 2010 11:37 am
by napacabs
Do you have a "GEO IP support" update for 7.0.5?

Re: GEO IP support

Posted: Sat Nov 06, 2010 4:40 am
by mazhar
napacabs wrote:Do you have a "GEO IP support" update for 7.0.5?
I just posted a zip file for 7.0.5 in top post.

Re: GEO IP support

Posted: Wed Aug 22, 2012 11:41 am
by batmike
I had an issue come up the other day and others using this may have seen the same thing. It seems that the site changed some of the table code so when trying to hover over to lookup the IP info, an error would be returned.

To fix, I had to change line 33 in the /App_Code/GeoLocationHelper.cs from this:

Code: Select all

int startIndex = resultPage.IndexOf("<table width=\"300\" height=\"300\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\" class=\"tbl_style\">");
to this:

Code: Select all

int startIndex = resultPage.IndexOf("<table width=\"297\" height=\"300\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\" class=\"tbl_style\">");

The only change is that the table width is now 297 instead of 300.


Hope this helps others who may be using this nice little addon.


-Mike