Sep 06, 2017

USPS API Changes to “First-Class Mail Parcel”

Shane Blanford

On September 1st, 2017 USPS changed the “First-Class Mail Parcel” service to “First-Class Package Service – Retail”

Magento has yet to release an official patch for this issue. Until a patch is released here is how you can fix the issue.

To begin with, we DO NOT advise modifying core files. Please override this class or create a patch file to avoid modifying core file.

The file that needs to be modified is :
app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php

You will need to edit the file in two locations.

Location one is located on line #543 and will look like this.

Change this line to be :

‘0_FCP’ => Mage::helper(‘usa’)->__(‘First-Class Package Service – Retail’),

Once you are complete it should look like this.

 

 

 


The second location where this needs to be updated is on line #703 and should look like this.

Change this line to be :

‘First-Class Package Service – Retail’ => ‘0_FCP’,

Once you are complete it should look like this.