Skip to content

Commit

Permalink
Merge pull request #4 from macopedia/SUPEE-4291_4334
Browse files Browse the repository at this point in the history
SUPEE-4291/4334 - This patch addresses the USPS API changes
  • Loading branch information
LeeSaferite committed Nov 4, 2014
2 parents 5fcbb8b + 2a83b98 commit 6d38f1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ protected function _getXmlQuotes()
if ($r->getService() == 'FIRST CLASS' || $r->getService() == 'FIRST CLASS HFP COMMERCIAL') {
$package->addChild('FirstClassMailType', 'PARCEL');
}
if ($r->getService() == 'FIRST CLASS COMMERCIAL') {
$package->addChild('FirstClassMailType', 'PACKAGE SERVICE');
}

$package->addChild('ZipOrigination', $r->getOrigPostal());
//only 5 chars available
$package->addChild('ZipDestination', substr($r->getDestPostal(), 0, 5));
Expand Down Expand Up @@ -535,8 +539,8 @@ public function getCode($type, $code = '')
'2' => Mage::helper('usa')->__('Priority Mail Express Hold For Pickup'),
'3' => Mage::helper('usa')->__('Priority Mail Express'),
'4' => Mage::helper('usa')->__('Standard Post'),
'6' => Mage::helper('usa')->__('Media Mail'),
'7' => Mage::helper('usa')->__('Library Mail'),
'6' => Mage::helper('usa')->__('Media Mail Parcel'),
'7' => Mage::helper('usa')->__('Library Mail Parcel'),
'13' => Mage::helper('usa')->__('Priority Mail Express Flat Rate Envelope'),
'15' => Mage::helper('usa')->__('First-Class Mail Large Postcards'),
'16' => Mage::helper('usa')->__('Priority Mail Flat Rate Envelope'),
Expand Down

0 comments on commit 6d38f1a

Please sign in to comment.