Sites been running for a while. Never had an issue, but USPS priority flat rate box is now, not working. It does not show up in the available methods for my customers. Any idea why?
Having same problem. Priority Mail Flat rate box flat out doesn’t work.
Even if I set Container to Flat Rate Box and only select Priority Mail Flat Rate box in the shipping options I get the Shipping method not available error.
Took a look at this code, and instead of using rate codes it is using string matching.
The problem is the string in Magento is ‘Priority Mail Flat-Rate Box’, but the string being returned from USPS is ‘Priority Mail Regular Flat-Rate Boxes’ —so it skips this one.
For a quick fix grab this file:
/app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
Line 267 - I just hardcoded it:
if (in_array((string)$postage->MailService, $allowedMethods) || 'Priority Mail Regular Flat-Rate Boxes' == (string)$postage->MailService ) { ....
This should be updated in the core code, next update will be overwritten. And it should be rewritten to use the ID’s instead of the strings.
I have tried the method gbear suggested but still get nothing… anyone else? Is there other places that string needs to be replaced?
Using version 1.2.1
thanks