USPS International Shipping stopped working

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
USPS made a change : "Origin ZIP Code required for Priority Mail International to Canada"

May 31, 2015 USPS Web Tools will be implementing modifications and additional features to the U.S. Postal Service APIs. The following changes may especially impact shipping systems:

- Origin ZIP Code required for Priority Mail International to Canada
- Modified special services
- Modified service IDs
- Modified available mail classes for Merchandise Return Services



The bold lines need to be added to the USPS Shipping Plugin.  Note that the line OriginZip appears in two places in the code.
    
sb.AppendFormat("<IntlRateV2Request USERID=\"{0}\" PASSWORD=\"{1}\">", username, password);
sb.AppendFormat("<Revision>2</Revision>");    
...
    sb.AppendFormat("<Girth>{0}</Girth>", girth);
    sb.AppendFormat("<OriginZip>{0}</OriginZip>", zipPostalCodeFrom);      
...
    sb.AppendFormat("<Girth>{0}</Girth>", girth);
    sb.AppendFormat("<OriginZip>{0}</OriginZip>", zipPostalCodeFrom);  
8 years ago
Thanks, but I don't have access to the source code to make those kind of changes. I have to give that to my developer to get to when he can which will takes days/weeks/months,   In the meantime, I desperately need to ship packages to Canada.  We probably lost $1000 this weekend in sales already because I have no shipping method to Canada?


Could someone please tell me how to add a Flat rate option to Canada? I'm trying to just add a simple flat rate option for $35 to Canada only,  and not effect every other country I ship to.
8 years ago
In Shipping Director, you can add another Option record just before your Option record for USPS.  Just put a conditional Expression checking for Canada - e.g. $35 flat rate ...
String  Country          ShippingAddress.Country.TwoLetterIsoCode

Option  USPS Priority    [Country]="CA"                            35.00
8 years ago
I've fixed the USPS plugin as per above, and recompiled it for those who have "no source" versions...

Fixed USPS plugins for nopCommerce versions 3.30, 3.40, and 3.50
8 years ago
I switched out the .dll,  reloaded my plugins now I'm still getting the following error when trying to ship to CA



USPS Error returned: Error Desc: Unable to calculate international postage. No services available. Invalid Country NameUSPS Help Context: .

USPS Error returned: Error Desc: Unable to calculate international postage. No services available. Invalid Country NameUSPS Help Context: .
8 years ago
It's because you changed the name of your Country.  (Leave it as just "Canada")
8 years ago
Thank you for the updated .dll file. I have switched it out and it works great. USPS is now calculating out the Canada shipping cost correctly. Again, thank you.
8 years ago
Hi Dennis,

Thanks a lot! Fixed in the upcoming version 3.60. Please see changeset aee0bd704b32
8 years ago
implemented on our older 3.2 version, worked fine.
8 years ago
I have an older version....Nop 2.5 and I get the following error....

USPS Error returned: Error Desc: Invalid options requested for this revision of International Rate V2.USPS Help Context:

I also noticed that it seems like you are adding the line about the Origin Zip Code before the Girth statement.
I have that Girth appending statement 4 times not two.

Anybody else modify it for 2.5 ?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.