silvershop / silvershop-core

SilverShop is an e-commerce shopping cart module for the SilverStripe CMS
http://silvershop.github.io
BSD 2-Clause "Simplified" License
113 stars 119 forks source link

Pre-populated countries and regions #98

Open jedateach opened 11 years ago

jedateach commented 11 years ago

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:

jedateach commented 11 years ago

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 commented 11 years ago

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

jedateach commented 11 years ago

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.