Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I add countries? 
 
the311guy
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2007-10-18
 

Endicia does not allow shipping to the UK, but I cannot add England, etc.. to the shipping countries.  How do I add countries to the available list of countries??

thanks!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
the311guy
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2007-10-18
 

Anyone know how to add England as a shipping country?  please help

 
Magento Community Magento Community
Magento Community
Magento Community
 
the311guy
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2007-10-18
 

why is this so hard to do?  in most shopping carts its quite easy

 
Magento Community Magento Community
Magento Community
Magento Community
 
arana
Jr. Member
 
Total Posts:  8
Joined:  2008-07-07
 

i would try to add it in the database directly :/ , and yes it sucks

 
Magento Community Magento Community
Magento Community
Magento Community
 
the311guy
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2007-10-18
 

Does anyone know how to do this?  Can anyone help out?  I will pay for your help.. thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
the311guy
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2007-10-18
 

I’ve searched the whole DB in phpmyadmin for “egypt” and it returned 0 results.  Am i doing something wrong?  Where are these countries located?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Magentourist
Member
 
Total Posts:  48
Joined:  2008-08-11
Berlin
 

I’m not quite shure but in magento/lib/Zend/Locale/Data/ are the xml files containing the country listing. How to make the system update that list? I don’t know but it’s the same list shown in the backend under General Config.

Hope it helps.
Although many people browse this forum you’ll probaly go for a silver account to get more support for your questions. Magento is open source but people still want to earn some money.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tradiArt
Guru
 
Avatar
Total Posts:  379
Joined:  2008-04-28
Spain
 

In my case, I need to add states to existing countries.

Does the data must be inserted in sql or xml? Will these countries and states be overwritten when an update is done?

I hope in future versions of Magento there is a place for modifying and adding countries and states grin

If anybody has the answer…

Thank you!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
radders
Sr. Member
 
Total Posts:  162
Joined:  2008-03-23
 

@ZlejDedek - Yes but where in the database do you add it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
elfling
Enthusiast
 
Avatar
Total Posts:  901
Joined:  2008-10-21
 

Ok, sooo.. I was looking into this for the past 40 mins and I came up with this solution.

Open up lib/zend/locale/data/en.xml

Scroll down to territories.. add in territory IF it is not already listed.

GG for Guernsey
JE for Jersey

(luckily both these are already in my file)

Then go to PHPmyadmin

go down to directory_country

Click SQL Query and type

SELECT * FROM `directory_country`

or delete where 1

Click Insert

Add these into the value box

New country code for Guernsey is GG, GG GBG
Untick the ignore box and continue to add
New country code for Jersery is JE, JE, GBJ

Leave the function box blank

Click go

New countries will now appear in your backend, so you can add VAT rules for these countries.

I hope this helps somewhat in terms of the basic principles of adding a country.

elfling

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top