Return to Snippet

Revision: 48680
at July 7, 2011 19:41 by JustMadMike


Updated Code
:)

Revision: 48679
at July 7, 2011 19:40 by JustMadMike


Updated Code
1. Open lib/zend/locale/data/en.xml

2. Locate territories tag in this file

3. copy one of territory tags for the syntax and paste it within the territories tag

4. hard part here is to add country code in this file as might not be able to find a unique one, so it�s upto you.

5. Save this file

6. Open table name directory_country

7. It has predefined syntax follow then same and create a new row and enter the same country code as entered in the en.xml file in 3 columns.

8. Refresh the site�s cache.

9. Admin > Configuration > General this new country should be selected in list of allowed countries.

New country should be visible now.

Revision: 48678
at July 7, 2011 19:40 by JustMadMike


Initial Code
1. Open lib/zend/locale/data/en.xml

2. Locate territories tag in this file

3. copy one of territory tags for the syntax and paste it within the territories tag

4. hard part here is to add country code in this file as might not be able to find a unique one, so it�s upto you.

5. Save this file

6. Open table name directory_country

7. It has predefined syntax follow then same and create a new row and enter the same country code as entered in the en.xml file in 3 columns.

8. Refresh the site�s cache.

9. Admin > Configuration > General this new country should be selected in list of allowed countries.

New country should be visible now.

Initial URL


Initial Description
1. Open lib/zend/locale/data/en.xml

2. Locate territories tag in this file

3. copy one of territory tags for the syntax and paste it within the territories tag

4. hard part here is to add country code in this file as might not be able to find a unique one, so it's upto you.

5. Save this file

6. Open table name directory_country

7. It has predefined syntax follow then same and create a new row and enter the same country code as entered in the en.xml file in 3 columns.

8. Refresh the site's cache.

9. Admin > Configuration > General this new country should be selected in list of allowed countries.

New country should be visible now.

Initial Title
Add New Country to Magento

Initial Tags
magento

Initial Language
PHP