Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Is there a PHP only Geoip for Silverstripe


Go to End


7 Posts   1980 Views

Avatar
HansR

Community Member, 141 Posts

17 February 2010 at 2:41pm

The "new" ecommerce module requires geoip to be installed, but the provider that I use doesn't have it installed on their system. Is there a PHP only version that can be used with Silverstripe? MaxMind make a PHP only GeoIP module (see http://www.maxmind.com/app/php). Has anyone tried integrating it with Silverstripe?

Hans

Avatar
HansR

Community Member, 141 Posts

23 February 2010 at 3:09pm

No one else has a server without GeoIP?

Hans

Avatar
Juanitou

Community Member, 323 Posts

23 February 2010 at 10:01pm

Avatar
HansR

Community Member, 141 Posts

24 February 2010 at 9:36am

Hehe, that's from my own website. It's no substitute for GeoIP though. I was hoping that someone would have a plug in PHP replacement for the GeoIP command that the ecommerce module currently uses.

If there's no simpler solution, then I'll have no choice but to take my existing "get the visitors country" code, and jam it into the eCommerce module. I don't like this solution though, as it means that I'll have to redo it every time I upgrade the module.

Hans

Avatar
Juanitou

Community Member, 323 Posts

24 February 2010 at 9:38pm

Oops, sorry!

Avatar
TotalNet

Community Member, 181 Posts

6 April 2010 at 9:18am

No one else has a server without GeoIP?
My hosting provider soes not yet have GeoIP ethier, they've said it might be in their plans so if I can't get the Pure PHP module wotking I might actually change providers.
Will let you know if I make any headway.
Rich

Avatar
Double-A-Ron

Community Member, 607 Posts

6 April 2010 at 4:04pm

We did this by running with a third party API that did all the Geo stuff with a call to the service on page load (stored locally after first load). We would simply blocks of API calls and pass the cost onto the customer.

The reason why I don't name the vendor is because they shut down and left our site with no geo branching, which is quite dangerous in our case. We quickly moved to a server with GeoIP installed and regulary updated. There really is no substitute and definately no more stable method of doing it.

That said, I'm surprised the ecommerce module *requires* it. There are a ton of PHP ecommerce solutions out there, and none require a server dependancy like that as far as I know.