Magento – USPS 1.9.1.1 Priority Mail International Broken

magento-1.9usps

If you select Priority Mail International and do a estimate to Canada, The handling fee comes up as a option to select for shipping.

Work around is to deselect "Priority Mail International"

Best Answer

EDIT: Keep in mind Magento resolved this issue with their SUPEE-6237 patch on Jun 18, 2015. It's probably just easier to install the patch at this point to resolve the issue.

I had a problem where the rate was showing up as $0.00 without the method name. The problem appears to coincide with the USPS rate change as of May 31st, 2015:

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 first caused Priority mail international returns the following error:

<ServiceErrors>
    <ServiceError>
        <Id>50050</Id>
        <Description>The Origin ZIP Code and the Destination Postal Code is required for Priority Mail International when mailing to Canada.</Description>
    </ServiceError>
</ServiceErrors>

The solution was to copy the file: app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php to app/code/local/Mage/Usa/Model/Shipping/Carrier/Usps.php

I then inserted the following code into line 394:

if($r->getDestCountryId()=='CA'){
    $package->addChild('OriginZip', $r->getOrigPostal());
}

This fixed the issue for me.

Edit: This will only work if you have your 5-digit zip code entered in the shipping origin.