Closed (works as designed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2009 at 12:56 UTC
Updated:
13 Feb 2011 at 07:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
agilpwc commentedseems like there is new function function uc_usps_country_map
and only the countries defined in there will give quote. I added in some countries and now it works fine for those countries.
Comment #2
langworthy commentedJust ran into this problem myself.
Here's a patch to add all the countries that I could find in uc_store/countries
Notes:
- Monaco is independent (not part of France)
- Serbia and Montenegro are now both independent.
- I dropped some of the country names in parenthesis (Isle of Man, Republic of Korea) using the format of countries within uc_store/countries.
- Following the format of uc_store/countries I used 'United Kingdom' instead of 'Great Britain and Northern Ireland' and 'Georgia' instead of 'Georgia, Republic of'
Comment #3
langworthy commentedbecause .patch files taste better.
Comment #4
langworthy commentedAnd a patch including all the countries in uc_store/countries is even tastier. (was missing Canada and US)
Comment #5
langworthy commentedComment #6
Island Usurper commentedThe whole point of this function is to change the country name from the way it's stored in {uc_countries} to a format that USPS will recognize. I didn't include the ones that we don't yet have a country import file for, nor did I include the ones that don't need to be changed. I saw no reason to add a bunch of code that didn't even do anything.
Unfortunately, I somehow forgot to include the part that returns the identical country name. This patch adds it in so that it will work for any installed country.
Comment #7
langworthy commentedWell that's much simpler.
patch in #6 works for me.
Comment #8
Island Usurper commentedThanks. Committed.
Comment #9
irestus commentedI have uploaded the patches outlined in this forum and the countries are all configured correctly. But I am still not getting a shipping quote from USPS. When I put in the zip code for the US I get a quote. When I put in a postal code for Canada I do not get a shipping quote. My customers are world wide and now I cannot sell anything because I cannot generate a shipping quote.
Comment #10
langworthy commentedOnly the patch in comment #6 should be applied.
Comment #11
kevinquillen commentedCode for United Kingdom should be Great Britain? I changed United Kingdom to Great Britain and started getting quotes for USPS Intl- previously I was not. Got 'invalid country name' error.
Comment #12
kevinquillen commentedI also get invalid country name for United States when entering an APO FPO address.
Comment #13
Island Usurper commentedIt seems to me that the USPS API expects APO/FPO addresses to be served by the domestic rate calculator since it's based off of the American-style ZIP codes. However, I can't find any that actually work, so I don't know what to do about it. The domestic rate calculator only uses the ZIP code, so that's the only thing that has to be valid when shipping withing the US.
Comment #14
kevinquillen commentedYou're right. What was relayed to me by the client and USPS representative that visited was that its USPS Intl since packages go through customs- but its only shippable USPS Domestic. Sorry for the confusion.
Comment #15
tr commentedI don't know why this is still active. The original issue was fixed in #8. #9 seems to be a support request; shipping to Canada certainly does work. #11-#14 raise a question about APO/FPO addresses, but those work properly as well. I don't see any outstanding questions that need to be answered.