All countires and zones?

12 replies [Last post]
Joined: 08/08/2007
Juice: 500

I remember before the server went down there was a post in which someone attached a zip file with the sql for all country's and their zones. Does anyone still have that file?

Uberdevelopment www.tsd.net.au/blog

Joined: 08/08/2007
Juice: 500

Actually, I've done it myself see attached.

The original data I was working with had a region column for grouping the countrys by continent. I've attached a CSV file if anyone is interested in it. Perhaps would be handy for the shipping module.

AttachmentSize
uc_countries.sql_.zip 3.92 KB
all countires and iso codes.csv_.txt 8.18 KB

Uberdevelopment www.tsd.net.au/blog

Joined: 01/02/2008
Juice: 226

Thanks to tr_ who pointed this post out to me. This needs to be in the contribs section, as i've had several clients ask for this, and was just about to do it myself!

Joined: 06/24/2008
Juice: 224

Thanks. I tried searching for it, but couldn't find it out.

Joined: 06/24/2008
Juice: 224

After I've uploaded the sql file to the database the region bar for the country where regions are not specified shows "Not applicable". It should give an option for users to write zones on their own. Please check the image below.

Any solution to the problem?

AttachmentSize
zone-not-applicable.jpg 25.88 KB
Joined: 08/07/2007
Juice: 15046

No known solution to this problem, but for most places in the world it won't matter. City, Postal code, and Country usually suffice.

Joined: 06/24/2008
Juice: 224

The list of 189 countries (without regions) which are supported by Paypal. Paypal supports 190 countries but I didn't find code for one country named "Democratic Republic of the Congo (CD)".

To show ONLY Paypal countries in country list remove all previous countries in SQL, database of ubercart (uc_countries), through phpMyAdmin, then import the file to phpMyAdmin. Remove the extension "_.txt" before you proceed.

AttachmentSize
uc_countries.sql_.txt 7.95 KB
Joined: 06/24/2008
Juice: 224

Why the Japan regions in uc_country shows as question - "????" marks? It isn't displaying any properly language?

Joined: 05/19/2008
Juice: 28

According to Wikipedia, the codes for CD are 180 and COD

http://en.wikipedia.org/wiki/ISO_3166-1

Attached is an updated file just with that one line added.
I've also made an insert query according to the full country list in the same wikipedia page... If anyone is interested I can put that up here.

AttachmentSize
uc_countries.sql_.txt 8 KB
Joined: 08/13/2007
Juice: 22

Thanks for this. I think your uc_countries.sql_.zip works fine on my site. all African countries appear to be available, which is my top priority.

It would be helpful for others I think if these were already included in the ubercart module by default, with all countries turned on or at least easy to turn on. I had an interesting 20 minutes of pressing the button to install all the countries available in ubercart before finding this.

Cheers,

Tobias

Joined: 06/24/2008
Juice: 224

*List of 190 countries of PayPal.
*Name of countries are exactly as stated in paypal website - https://www.paypal.com/worldwide/.
*There is an error in country numeric code of Ethiopia which has been rectified in this update.

I have manually checked each and every code so there should not be errors anymore.

AttachmentSize
uc_paypal_countries.sql_.txt 7.98 KB
Joined: 03/25/2009
Juice: 11

The problem with the Paypal Countries list is that PayPal doesn't service all the countries in the world, and therefore the list is incomplete. I ran into this problem when trying to accept donations from South American countries like Paraguay and Uraguay -- PayPal doesn't have a relationship with those countries.

--

This thread contains a far more complete list of countries (245 at the time of this post):
http://www.ubercart.org/forum/internationalization/347/country_and_zone_...

wuh
wuh's picture
Joined: 06/06/2009
Juice: 35

The PayPal list was just what I was looking for - thanks