7 replies [Last post]
IT Guy 3000's picture
Offline
Joined: 05/11/2009
Juice: 121
Was this information Helpful?

Hi all,

I've spent some time on the forums and elsewhere trying to figure out how to properly configure Ubercart 1.x for international USPS shipping, but without success. My store works fine/well/great in every respect except this. Domestic USPS shipping quotes work fine. But entering a postal code outside the U.S. always returns an error, and international orders get submitted with $0.00 for shipping, which is bad.

Can someone point me to, or post, all of the steps required to enable USPS international shipping and quotes? I can't imagine it's complex, but my mind is collapsing in upon itself trying to crack this nut. We receive many international orders, so I've got to fix this pronto.

Alternately -- and I don't like this option -- is it possible to prevent checkout if shipping equals $0.00? Or prevent checkout for international orders? Again, both of those are bad options, and I'm sure there's a way to get the USPS quotes to work. Isn't there?

Thanks in advance. My collapsing brain thanks you!

--ITG3000

IT Guy 3000's picture
Offline
Joined: 05/11/2009
Juice: 121
Working Partially...

I'm now able to successfully pull USPS international quotes for some mail types (Priority International Flat Rate Box, Priority International) but not for the most common choice, USPS International First Class. That continues to return the "unable to get a quote" message. Any thoughts? Any place I should look for details of the error? Is there some component that needs tweaking or updating?

I'm new to Ubercart and would welcome some guidance. Thanks!

IT Guy 3000's picture
Offline
Joined: 05/11/2009
Juice: 121
Shipping error information

XML is coming back from USPS with all the right data for different types of USPS shipping, but not getting picked up in Ubercart. Any suggestions? Thx.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Shipping error information

Is it enabled in the USPS module's shipping quote settings?

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Shipping error information

I supposed we *could* play 20 questions here ... let my guess be "your package is too heavy for the first class method?" ... However, it would go a lot faster if you post the Request sent to USPS and Response received back, both of which you will see after turning on the print debugging messages option at admin/store/settings/quotes/edit. Then instead of guessing we could offer advice based on facts.

<tr>.
IT Guy 3000's picture
Offline
Joined: 05/11/2009
Juice: 121
Irony: Anniversary of 5/12/08 USPS API change...

Lyle/TR,

Thanks for responding. Discovered that the installation I'm working on was built with very old shipping module code, before the 5/12/08 USPS API change. As a Drupal/Ubercart newbie (three weeks), I've never updated an individual module, though I've read up on the steps. What's the simplest way to update just this piece without possibly breaking anything else? I'm guessing there's been changes to this module other than TR's 5/12/08 intl shipping fix here: http://www.ubercart.org/forum/support/4644/usps_shipping_api_changes_mad...

Though if swapping in that code will fix this for now, that'll be fine.

The installation is freshly updated Drupal 5.17 core and Ubercart 1.x.

Thanks again.

IT Guy 3000's picture
Offline
Joined: 05/11/2009
Juice: 121
Forgot to mention...

... swapping in the new API-related code seems to work, though I'm wondering if there are other fixes of note in subsequent code revisions, e.g. TR's reference to a weight issue. Thanks!

IT Guy 3000's picture
Offline
Joined: 05/11/2009
Juice: 121
Closing out thread

Just thought I'd close out this thread. The problem was with the old module code that didn't accomodate the 5/2008 change in the USPS API. I believe the "weight" issue referred to above has to do with USPS automatically bumping international first class parcels to international priority when you get over four pounds. So it doesn't return a quote for first class, only priority. I assume that if you don't have both international first class parcels AND international priority selected for quotes, a request for a quote for 4-pound+ international item will not return a quote. Hope this helps!