Friday, April 12, 2013

Prestashop complete state list of the world

Need a complete list of states of the world?
use these code below, but Note:
this has changed name size to 200 and iso_code size to 30,
please remember to change class/State.php accordingly,
and change class/Validate.php too.

Or replace both class via override/classes, see code below:
(as of prestashop

makesure to run this after import:
update ps_country set contains_states=1;

to enable all countries:
update ps_country set active=1;

No comments: