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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Where does getCountryDropDown() come from?


Reply


3 Posts   1370 Views

Avatar
DeklinKelly

Community Member, 197 Posts

25 July 2009 at 5:07am

Where is the list of Countries? How can I add a country or change a country's name?

Geoip::getCountryDropDown()

Avatar
Willr

Forum Moderator, 5513 Posts

25 July 2009 at 11:33pm

In GeoIp.php there is a protected static $iso_3166_countryCodes which defines the array.

Avatar
DeklinKelly

Community Member, 197 Posts

7 August 2009 at 4:52am

I want to make some customizations to class Geoip (sapphire/integration/GeoIp.php) but I only want my customizations to apply to the commerce module. Is there a way that I could overide this class just for one module WIHTOUT modifying any code in sapphire?