silvershop-core
silvershop-core copied to clipboard
Pre-populated countries and regions
The ISO 3166-2 standard stores a list of 2nd level administrative regions of countries. This database is quite easily accessible. Storing it in the SilverStripe database will allow for more accurate entered data, and auto-completion.
It might be a good idea to build this as a separate module to be required by the shop module.
Possible sources:
- http://www.commondatahub.com/state_source.jsp
- http://www.geonames.org/
- http://www.geopostcodes.com/GeoPC_ISO_3166_2_Regions_codes
- http://blog.bakedproject.com/2009/12/27/iso-3166-iso-3166-1-iso-3166-2/
- (google search)
This somewhat relates to locales, internationalisation, etc. It would be great to nail this in a generic way.
See also: content personalisation module https://github.com/yukiawano/sscpmodule
http://download.geonames.org/export/dump/ seems like a good place to start getting data
I've created a separate SilverStripe module for populating & storing this "regional data": https://github.com/burnbright/silverstripe-regionaldata.
Using this module will probably create a dependency on it. It will need to be proven, and clear how to use.