Hi,
I would need to change default country to a select range (ex: Canada and USA) and have State/Province to a dropdown list with according to the proper value.
3 sol:
a) add default value manuallt
b) table based on virtue mart:
it has a countries table and all the related states all set up for you included in the installation SQL. They're called jos_virtuemart_countries and jos_virtuemart_states. It also includes the 2 and 3 character country codes. c) geonames :
https://github.com/yosoyadri/GeoNames-XML-Builder/blob/master/continents-countries-statesprovinces.xml
there's also the excellent pycountry module:
http://pypi.python.org/pypi/pycountry
I would need to change default country to a select range (ex: Canada and USA) and have State/Province to a dropdown list with according to the proper value.
3 sol:
a) add default value manuallt
b) table based on virtue mart:
it has a countries table and all the related states all set up for you included in the installation SQL. They're called jos_virtuemart_countries and jos_virtuemart_states. It also includes the 2 and 3 character country codes. c) geonames :
https://github.com/yosoyadri/GeoNames-XML-Builder/blob/master/continents-countries-statesprovinces.xml
there's also the excellent pycountry module:
http://pypi.python.org/pypi/pycountry