silvershop-core icon indicating copy to clipboard operation
silvershop-core copied to clipboard

Pre-populated countries and regions

Open jedateach opened this issue 12 years ago • 3 comments

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)

jedateach avatar Oct 29 '12 03:10 jedateach

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

jedateach avatar Oct 29 '12 03:10 jedateach

http://download.geonames.org/export/dump/ seems like a good place to start getting data

jedateach avatar Oct 29 '12 22:10 jedateach

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.

jedateach avatar Nov 26 '12 23:11 jedateach