USPS Realtime International

OK…I have USPS priority mail working. A 2lb package says it’s $5.00 in the test field on the admin.



However, for International priority mail (of any type or weight), I keep getting:

“First Class mail must weigh 13 ounces or less.”



Additionally, when entering a Canada shipping address, it says that no shipping options are available.



I get where i can configure specific countries for manual rates…but I need to be using realtime rates.

This sounds similar to what is discussed in another thread:

[url]http://forum.cs-cart.com/showthread.php?t=15755[/url]



Bob

I agree…except that it reports the 13oz error no matter what combination of settings I use for weight ranges, etc.



I read through my logs, and while I am no expert, it almost looks like it’s returning only domestic rates. Is there a place you have to enable international shipping or something?

Yes, there are separate rates for international shipments. You will need to set up separate shipping method(s) for your international shipments.



Bob

Yes, I’ve done that. For example, I want to use fedex for everything but international. (FedEx is and has been working fine…)



So I setup the USPS settings with my username on the settings side in admin.



Then in shipping settings, I add a method, call it International, select realtime.



Then under the dropdown, when I select and of the international rates, enter a weight, and click test, it fails, and says it has to be 13oz or less. However, doing the same thing with any of the domestic dropdowns gives me a rate.

It could be the service definitions which have changed and have not been updated in the cart yet. I think there are supposed to be updated in 2.0.13. If you want to update the service definitions now you can execute the following SQL statements in phpMyAdmin:

UPDATE cscart_shipping_service_descriptions SET description='USPS First-Class Mail International Package' WHERE service_id='54' AND lang_code='EN';
UPDATE cscart_shipping_service_descriptions SET description='USPS First-Class Mail' WHERE service_id='70' AND lang_code='EN';
UPDATE cscart_shipping_service_descriptions SET description='USPS First-Class Mail International Large Envelope' WHERE service_id='203' AND lang_code='EN';
UPDATE cscart_shipping_service_descriptions SET description='USPS First-Class Mail International Parcels' WHERE service_id='204' AND lang_code='EN';
UPDATE cscart_shipping_service_descriptions SET description='USPS First-Class Mail International Letters' WHERE service_id='205' AND lang_code='EN';
UPDATE cscart_shipping_service_descriptions SET description='USPS First-Class Mail International Flats' WHERE service_id='206' AND lang_code='EN';
UPDATE cscart_shipping_services SET code='First-Class Mail International Package' WHERE service_id='54';
UPDATE cscart_shipping_services SET code='First-Class Mail International Large Envelope' WHERE service_id='203';
UPDATE cscart_shipping_services SET code='First-Class Mail International Parcels' WHERE service_id='204';
UPDATE cscart_shipping_services SET code='First-Class Mail International Letters' WHERE service_id='205';
UPDATE cscart_shipping_services SET code='First-Class Mail International Flats' WHERE service_id='206';




Bob

I appreciate your help…but I just ran the query, and that didn’t seem to change anything.

Let’s take a specific example. What shipping service are you specifying and what weight do you use for the test?



aslo, in the USPS shipping setting, what ‘Type of mail’ do you have specified for International USPS? Is ‘Test mode’ checked?



Bob

Well, I have tried

USPS Priority Mail International and

USPS Priority Mail International Flat Rate Box



For both, inputting .5 in the box next to it and clicking test results in a shipping price of “n/a”



For both, inputting 1 in the box next to it and clicking test results in the less than 13oz error message.



In the admin settings:

Test Mode: Unchecked

Type of Mail: Package

Package Size; Regular

Machinable: True

Both containers are set to none.



I’ve attempted the same shipping method with various changes to type of mail, test mode checked and unchecked, containers set to various things, etc., and always get the same two errors depending on weight.

When you get the “N/A” response for the .5 weight, what is the error in the log (Administration->Logs - make sure ‘Requests’ is checked in the Logging settings).



Bob

I’m working on this now also, and on the USPS site, First Class International should go up to 4lbs. Is the 13oz. limit coded in CS somewhere, or is it receiving incorrect data from USPS?

There is no weight hard-coded as I recall. The shipment weight is passed to USPS and the rated services available are returned. What is your total shipment weight? Does the International shipping method show up as an option in the cart? If not, you might have the weight on the shipping method set incorrectly. Are you trying to ship an actual package or just testing?



Is the shipment origination country different from the destination country. The cart checks this to determine whether to request domestic or international rates. Have you checked your logs for requests to see if the international rates are being returned?



Bob

Thanks, Bob.



Total weight = .05 lb



The option was not showing up when set to realtime. Works great with manual calcs.



Still testing…very close to launch :smiley:



Shipping from CA, USA to UK and/or China



Logs show Int’l rates being called…a bit rough to read.

Not sure what it could be. If you would like me to take a look, PM me admin login information.



Bob

Thanks for the offer, Bob!



After spending a minute with the logs, and now know what I’m looking at, it appears to be returning rates, but not showing up as an option in the cart.



Have you had USPS First Class International working in realtime? If so, I’ll keep digging…

I don’t use USPS but have helped out some others with getting it set up. The most frequent problem I have seen is the outdated service names which caused rates to be not returned. Since the international rates are being returned, they should be displayed.



Bob

It was the database definitions keeping the cart from displaying the USPS FIrst Class options. I updated the db with the queries above (post #6) and all is good.



Thanks again to jobosales for pointing out my oversight and getting this working!

Just want to chime in there that I’m getting the same exact thing.

We ship tshirts in an envelope, other stuff in a box, to make it as cheap as possible.

The app charges over $50 to ship anything.



the USPS app has never really worked well.

Essentially, we’re looking at either charging $12 or so for a t-shirt or $30 for most anything else. I have no idea how I’m going to hardwire such a scenario.



USPS ‘realtime’ is a joke

I am having the same issue, and there doesn’t seem to be any solution in the forum.

Does anyone have the USPS international shipping working?

We have USPS realtime First Class, Priority, and international set up and running well.



Our hang-up was the database issue mentioned above. Once we ran that update, we were able to configure the methods as required.



We set First Class for 0-4 lbs, and Priority kicks in after that, based on info from the USPS site.