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.

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Is there a PHP only Geoip for Silverstripe


Reply

7 Posts   1210 Views

Avatar
HansR

17 February 2010 at 2:41pm Community Member, 140 Posts

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 [url]http://www.maxmind.com/app/php[/url]). Has anyone tried integrating it with Silverstripe?

Hans

Avatar
HansR

23 February 2010 at 3:09pm Community Member, 140 Posts

No one else has a server without GeoIP?

Hans

Avatar
Juanitou

23 February 2010 at 10:01pm Community Member, 323 Posts

Hi Hans.

Maybe this could help you: http://hdrlab.org.nz/getting-and-using-the-visitor-s-country/

Avatar
HansR

24 February 2010 at 9:36am Community Member, 140 Posts

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

24 February 2010 at 9:38pm Community Member, 323 Posts

Oops, sorry!

Avatar
TotalNet

6 April 2010 at 9:18am Community Member, 181 Posts

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

6 April 2010 at 4:04pm Community Member, 604 Posts

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.