All countires and zones?

Posts: 176
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

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?

--

suffering from too much information

Posts: 176
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

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
all countires and iso codes.csv_.txt8.18 KB
uc_countries.sql_.zip3.92 KB
--

suffering from too much information

Posts: 88
Joined: 01/02/2008
Bug Finder

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!

Posts: 89
Joined: 06/24/2008

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

Posts: 89
Joined: 06/24/2008

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.jpg25.88 KB
Posts: 5379
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

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

Posts: 89
Joined: 06/24/2008

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_.txt7.95 KB
Posts: 89
Joined: 06/24/2008

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

Posts: 10
Joined: 08/13/2007

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

Posts: 11
Joined: 05/19/2008

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_.txt8 KB
Posts: 89
Joined: 06/24/2008

*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_.txt7.98 KB