Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have enabled USPS Domestic - USPS Parcel Services:
- U.S.P.S First-Class Mail Parcel
- U.S.P.S Priority Mail
- U.S.P.S Express Mail
But during checkout I only see Priority Mail and Express Mail. No First-Class Mail Parcel is shown. My package is only 4oz.
Attached is the debug log (I changed out the address for this post).
According to this Magento Blog post, 'On September 1st, 2017 USPS changed the “First-Class Mail Parcel” service to “First-Class Package Service – Retail”'
https://www.orangecollarmedia.com/usps-api-changes-first-class-mail-parcel/
The issue is perhaps related to the USPS API change?
Comment | File | Size | Author |
---|---|---|---|
#3 | usps_first_class-2922411-3.patch | 745 bytes | retiredpro |
| |||
debug.txt | 11.4 KB | retiredpro |
Comments
Comment #2
EducoWebDesign CreditAttribution: EducoWebDesign as a volunteer commentedThis issue is definitely related to the API change - USPS changed the name of the First-Class Parcel service. I had a client reach out about the missing First-Class option a couple of days ago, and here's the fix that worked for me.
Edit ubercart > shipping > uc_usps > uc_usps.module at Line 373
Replace
if ((string)$postage->MailService == "First-Class Mail® Parcel") {
with
if ((string)$postage->MailService == "First-Class Package Service - Retail™") {
Hope that helps!
Chris
Comment #3
retiredpro CreditAttribution: retiredpro commentedThank you, EducoWebDesign! That worked for me. Attached a patch reflecting your change.
Comment #4
retiredpro CreditAttribution: retiredpro commentedComment #5
TR CreditAttribution: TR commentedThis is related to #2879270: USPS Quotes Doesn't support "First-Class Package Service", and I'd prefer to have the patch posted over in that issue because I've already responded there about what the problem is and what needs to be done to fix it.
@retiredpro: Please copy your original post into a comment for that issue so that we have all this information in one place. Note, the special characters in your patch are messed up...
Comment #6
retiredpro CreditAttribution: retiredpro commentedThanks for the feedback, @TR. I'll comment in the other thread with an updated patch.