Does anyone happen to know if module 6.1 works with the new Rates for V4?
Web Tools integrator;
As communicated first in May 2011, outdated versions of the Web Tools Domestic Rate Calculator API (Rate and RateV2) will be retired on March 31, 2012. At that time, requests to the Rate and RateV2 APIs will result in error message responses. If you are no longer sending requests to Rate and RateV2, please disregard this message.
Integrators should migrate to the current version of the Domestic Rate Calculator API (RateV4). Technical documentation is available at https://www.usps.com/business/webtools-technical-guides.htm.
Thank you for your cooperation. Please let us know if you have any questions or concerns.
Regards,
Web Tools Program Office
Latest News: (loading..)
USPS METHODS NOT WORKING?
Started by kalkal, Nov 04 2011, 18:54
44 replies to this topic
#41
Posted 31 March 2012, 17:19
#42
Posted 06 April 2012, 21:09
I just noticed today that the USPS delivery time estimates are not displayed to customers on the checkout_shipping page, only the methods and their corresponding prices. The information is collected, though, because the delivery estimate shows up on the invoice.
Any idea how I can get the delivery estimates to display on the checkout_shipping page? They were there a week or so ago, so I don't know how they have suddenly disappeared.
Any idea how I can get the delivery estimates to display on the checkout_shipping page? They were there a week or so ago, so I don't know how they have suddenly disappeared.
#43
Posted 07 April 2012, 11:44
Please disregard my previous post. It was apparently an issue with the USPS as all delivery estimates are once again displayed, although I did not make any changes.
#44
Posted 10 April 2012, 18:09
$this->types = array( 'Express Mail' => 'Express Mail<sup>®</sup>', 'Express Mail Hold For Pickup' => 'Express Mail<sup>®</sup> Hold For Pickup', 'Express Mail Flat Rate Boxes' => 'Express Mail<sup>®</sup> Flat Rate Boxes', 'Express Mail Flat Rate Boxes Hold For Pickup' => 'Express Mail<sup>®</sup> Flat Rate Boxes Hold For Pickup', 'Express Mail Flat Rate Envelope' => 'Express Mail<sup>®</sup> Flat Rate Envelope', 'Express Mail Flat Rate Envelope Hold For Pickup' => 'Express Mail<sup>®</sup> Flat Rate Envelope Hold For Pickup', 'Express Mail Legal Flat Rate Envelope' => 'Express Mail<sup>®</sup> Legal Flat Rate Envelope', 'Express Mail Legal Flat Rate Envelope Hold For Pickup' => 'Express Mail<sup>®</sup> Legal Flat Rate Envelope Hold For Pickup', 'Priority Mail' => 'Priority Mail<sup>®</sup>', 'Priority Mail Hold For Pickup' => 'Priority Mail<sup>®</sup> Hold For Pickup', 'Priority Mail Large Flat Rate Box' => 'Priority Mail<sup>®</sup> Large Flat Rate Box', 'Priority Mail Large Flat Rate Box Hold For Pickup' => 'Priority Mail<sup>®</sup> Large Flat Rate Box Hold For Pickup', 'Priority Mail Medium Flat Rate Box' => 'Priority Mail<sup>®</sup> Medium Flat Rate Box', 'Priority Mail Medium Flat Rate Box Hold For Pickup' => 'Priority Mail<sup>®</sup> Medium Flat Rate Box Hold For Pickup', 'Priority Mail Small Flat Rate Box' => 'Priority Mail<sup>®</sup> Small Flat Rate Box', 'Priority Mail Small Flat Rate Box Hold For Pickup' => 'Priority Mail<sup>®</sup> Small Flat Rate Box Hold For Pickup', 'Priority Mail Regional Rate Box A' => 'Priority Mail<sup>®</sup> Regional Rate Box A', 'Priority Mail Regional Rate Box A Hold For Pickup' => 'Priority Mail<sup>®</sup> Regional Rate Box A Hold For Pickup', 'Priority Mail Regional Rate Box B' => 'Priority Mail<sup>®</sup> Regional Rate Box B', 'Priority Mail Regional Rate Box B Hold For Pickup' => 'Priority Mail<sup>®</sup> Regional Rate Box B Hold For Pickup', 'Priority Mail Regional Rate Box C' => 'Priority Mail<sup>®</sup> Regional Rate Box C', 'Priority Mail Regional Rate Box C Hold For Pickup' => 'Priority Mail<sup>®</sup> Regional Rate Box C Hold For Pickup', 'Priority Mail Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Flat Rate Envelope', 'Priority Mail Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Flat Rate Envelope Hold For Pickup', 'Priority Mail Legal Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Legal Flat Rate Envelope', 'Priority Mail Legal Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Legal Flat Rate Envelope Hold For Pickup', 'Priority Mail Padded Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Padded Flat Rate Envelope', 'Priority Mail Padded Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Padded Flat Rate Envelope Hold For Pickup', 'Priority Mail Gift Card Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Gift Card Flat Rate Envelope', 'Priority Mail Gift Card Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Gift Card Flat Rate Envelope Hold For Pickup', 'Priority Mail Small Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Small Flat Rate Envelope', 'Priority Mail Small Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Small Flat Rate Envelope Hold For Pickup', 'Priority Mail Window Flat Rate Envelope' => 'Priority Mail<sup>®</sup> Window Flat Rate Envelope', 'Priority Mail Window Flat Rate Envelope Hold For Pickup' => 'Priority Mail<sup>®</sup> Window Flat Rate Envelope Hold For Pickup', 'First-Class Mail Parcel' => 'First-Class Mail<sup>®</sup> Parcel', 'First-Class Mail Large Envelope' => 'First-Class Mail<sup>®</sup> Large Envelope', 'First-Class Mail Letter' => 'First-Class Mail<sup>®</sup> Letter', 'First-Class Package Service' => 'First-Class<sup>™</sup> Package Service', 'First-Class Package Service Hold For Pickup' => 'First-Class<sup>™</sup> Package Service Hold For Pickup', 'Parcel Post' => 'Parcel Post<sup>®</sup>', 'Media Mail' => 'Media Mail<sup>®</sup>', 'Library Mail' => 'Library Mail' ); $this->type_to_request = array( 'Express Mail' => 'Express Commercial', 'Express Mail Hold For Pickup' => 'Express HFP Commercial', 'Express Mail Flat Rate Boxes' => 'Express Commercial', 'Express Mail Flat Rate Boxes Hold For Pickup' => 'Express HFP Commercial', 'Express Mail Flat Rate Envelope' => 'Express Commercial', 'Express Mail Flat Rate Envelope Hold For Pickup' => 'Express HFP Commercial', 'Express Mail Legal Flat Rate Envelope' => 'Express Commercial', 'Express Mail Legal Flat Rate Envelope Hold For Pickup' => 'Express HFP Commercial', 'Priority Mail' => 'Priority Commercial', 'Priority Mail Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Large Flat Rate Box' => 'Priority Commercial', 'Priority Mail Large Flat Rate Box Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Medium Flat Rate Box' => 'Priority Commercial', 'Priority Mail Medium Flat Rate Box Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Small Flat Rate Box' => 'Priority Commercial', 'Priority Mail Small Flat Rate Box Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Regional Rate Box A' => 'Priority Commercial', 'Priority Mail Regional Rate Box A Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Regional Rate Box B' => 'Priority Commercial', 'Priority Mail Regional Rate Box B Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Regional Rate Box C' => 'Priority Commercial', 'Priority Mail Regional Rate Box C Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Flat Rate Envelope' => 'Priority Commercial', 'Priority Mail Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Legal Flat Rate Envelope' => 'Priority Commercial', 'Priority Mail Legal Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Padded Flat Rate Envelope' => 'Priority Commercial', 'Priority Mail Padded Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Gift Card Flat Rate Envelope' => 'Priority Commercial', 'Priority Mail Gift Card Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Small Flat Rate Envelope' => 'Priority Commercial', 'Priority Mail Small Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial', 'Priority Mail Window Flat Rate Envelope' => 'Priority Commercial', 'Priority Mail Window Flat Rate Envelope Hold For Pickup' => 'Priority HFP Commercial', 'First-Class Mail Parcel' => 'First Class', 'First-Class Mail Large Envelope' => 'First Class', 'First-Class Mail Letter' => 'First Class', 'First-Class Package Service' => 'First Class Commercial', 'First-Class Package Service Hold For Pickup' => 'First Class HFP Commercial', 'Parcel Post' => 'Parcel', 'Media Mail' => 'Media', 'Library Mail' => 'Library' ); $this->type_to_container = array( 'Express Mail' => '', 'Express Mail Hold For Pickup' => '', 'Express Mail Flat Rate Boxes' => 'Flat Rate Boxes', 'Express Mail Flat Rate Boxes Hold For Pickup' => 'Flat Rate Boxes', 'Express Mail Flat Rate Envelope' => 'Flat Rate Envelope', 'Express Mail Flat Rate Envelope Hold For Pickup' => 'Flat Rate Envelope', 'Express Mail Legal Flat Rate Envelope' => 'Legal Flat Rate Envelope', 'Express Mail Legal Flat Rate Envelope Hold For Pickup' => 'Legal Flat Rate Envelope', 'Priority Mail' => '', 'Priority Mail Hold For Pickup' => '', 'Priority Mail Large Flat Rate Box' => 'LG Flat Rate Box', 'Priority Mail Large Flat Rate Box Hold For Pickup' => 'LG Flat Rate Box', 'Priority Mail Medium Flat Rate Box' => 'MD Flat Rate Box', 'Priority Mail Medium Flat Rate Box Hold For Pickup' => 'MD Flat Rate Box', 'Priority Mail Small Flat Rate Box' => 'SM Flat Rate Box', 'Priority Mail Small Flat Rate Box Hold For Pickup' => 'SM Flat Rate Box', 'Priority Mail Regional Rate Box A' => 'Regional Rate Box A', 'Priority Mail Regional Rate Box A Hold For Pickup' => 'Regional Rate Box A', 'Priority Mail Regional Rate Box B' => 'Regional Rate Box B', 'Priority Mail Regional Rate Box B Hold For Pickup' => 'Regional Rate Box B', 'Priority Mail Regional Rate Box C' => 'Regional Rate Box C', 'Priority Mail Regional Rate Box C Hold For Pickup' => 'Regional Rate Box C', 'Priority Mail Flat Rate Envelope' => 'Flat Rate Envelope', 'Priority Mail Flat Rate Envelope Hold For Pickup' => 'Flat Rate Envelope', 'Priority Mail Legal Flat Rate Envelope' => 'Legal Flat Rate Envelope', 'Priority Mail Legal Flat Rate Envelope Hold For Pickup' => 'Legal Flat Rate Envelope', 'Priority Mail Padded Flat Rate Envelope' => 'Padded Flat Rate Envelope', 'Priority Mail Padded Flat Rate Envelope Hold For Pickup' => 'Padded Flat Rate Envelope', 'Priority Mail Gift Card Flat Rate Envelope' => 'Gift Card Flat Rate Envelope', 'Priority Mail Gift Card Flat Rate Envelope Hold For Pickup' => 'Gift Card Flat Rate Envelope', 'Priority Mail Small Flat Rate Envelope' => 'SM Flat Rate Envelope', 'Priority Mail Small Flat Rate Envelope Hold For Pickup' => 'SM Flat Rate Envelope', 'Priority Mail Window Flat Rate Envelope' => 'Window Flat Rate Envelope', 'Priority Mail Window Flat Rate Envelope Hold For Pickup' => 'Window Flat Rate Envelope', 'First-Class Mail Parcel' => '', 'First-Class Mail Large Envelope' => '', 'First-Class Mail Letter' => '', 'First-Class Package Service' => '', 'First-Class Package Service Hold For Pickup' => '', 'Parcel Post' => '', 'Media Mail' => '', 'Library Mail' => '' ); $this->intl_types = array( 'Global Express Guaranteed (GXG)**' => 'Global Express Guaranteed<sup>®</sup> (GXG)**', 'Express Mail International' => 'Express Mail<sup>®</sup> International', 'Priority Mail International' => 'Priority Mail<sup>®</sup> International', 'USPS GXG Envelopes**' => 'USPS GXG<sup>™</sup> Envelopes**', 'Express Mail International Flat Rate Boxes' => 'Express Mail<sup>®</sup> International Flat Rate Boxes', 'Express Mail International Flat Rate Envelope' => 'Express Mail<sup>®</sup> International Flat Rate Envelope', 'Express Mail International Legal Flat Rate Envelope' => 'Express Mail<sup>®</sup> International Legal Flat Rate Envelope', 'Priority Mail International Large Flat Rate Box' => 'Priority Mail<sup>®</sup> International Large Flat Rate Box', 'Priority Mail International Medium Flat Rate Box' => 'Priority Mail<sup>®</sup> International Medium Flat Rate Box', 'Priority Mail International Small Flat Rate Box**' => 'Priority Mail<sup>®</sup> International Small Flat Rate Box**', 'Priority Mail International DVD Flat Rate priced box**' => 'Priority Mail<sup>®</sup> International DVD Flat Rate priced box**', 'Priority Mail International Large Video Flat Rate priced box**' => 'Priority Mail<sup>®</sup> International Large Video Flat Rate priced box**', 'Priority Mail International Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Flat Rate Envelope**', 'Priority Mail International Legal Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Legal Flat Rate Envelope**', 'Priority Mail International Padded Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Padded Flat Rate Envelope**', 'Priority Mail International Gift Card Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Gift Card Flat Rate Envelope**', 'Priority Mail International Small Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Small Flat Rate Envelope**', 'Priority Mail International Window Flat Rate Envelope**' => 'Priority Mail<sup>®</sup> International Window Flat Rate Envelope**', 'First-Class Mail International Parcel**' => 'First-Class Mail<sup>®</sup> International Parcel**', 'First-Class Mail International Large Envelope**' => 'First-Class Mail<sup>®</sup> International Large Envelope**', 'First-Class Mail International Letter**' => 'First-Class Mail<sup>®</sup> International Letter**' );
Hallelujah! Thanks to stumbling on post #1233 in this thread http://forums.oscommerce.com/topic/146950-contribution-usps-methods/page__st__1220, I finally got the damned First Class option to not only display properly but also follow through the checkout successfully. I run a heavily modded site, 2.2 and what seems like a million shipping options! (most of which are just outdated, unused and halfassed uninstalled, if you know what I mean....when you get something to work miraculously, you just want to back away from the code -- very slowly).
The key was the code for First-Class™ Package Service. Seemed like other threads pointing out the 'service' vs 'package' vs 'parcel' yada yada were misleading or not compatible, or just wacked.
Anyhows, here was my issues with 6.1 hopefully to save some other person hours of grief. I installed 6.1 (didn't bother with a) successfully, but the First Class rate was appearing, but without the title. The rate would appear, but when clicked to checkout, it would default back to the top option, whether it be Express Mail or Priority or whatever and customers would get charged for that service unknowingly. After struggling with the freakin' USPS naming conventions on my own, I stumbled on #1233 above, copied the piece into the usps.php from 6.1b (not a AND overwrote the one from 6.0), and it all works now. The rates are shown, correct, and when selected follows through the checkout process perfectly.
...what a nightmare for something so simple...
USPS United States Postal Service (1 pkg, 0.47 lbs total) (First-Class™ Package Service
---Delivery Confirmation™
---Approximate delivery time from mailing date 1 day) $4.33 [select]
USPS United States Postal Service (1 pkg, 0.47 lbs total) (Priority Mail®
---Delivery Confirmation™
---Approximate delivery time from mailing date 1 day) $6.75 [select]
USPS United States Postal Service (1 pkg, 0.47 lbs total) (Parcel Post®
---Delivery Confirmation™
---Approximate delivery time from mailing date 2 days) $7.90 [select]
USPS United States Postal Service (1 pkg, 0.47 lbs total) (Express Mail®
---Approximate delivery time from mailing date 1 day) $14.35 [select]
#45
Posted 16 May 2012, 07:00
As with everything here, example and explanation isn't clear enough to get the results we need... so here is my attempt at clarifying what is needed to be done to update the shipping arrays in usps.php.
In the contribution for USPS Methods 6.1, you should have a PHP page installed that retrieves an updated array from the USPS server.
Type into the address bar "your host... /catalog/admin/USPS_methods_utility.php"
The page will display the array that ...catalog/includes/modules/shipping/usps.php needs to be updated with.
Below is just a snippet of the results you should see, do not use it. Run the USPS_methods_utility.php yourself, because most likely this array is likely to change.
Open usps.php and replace the code completely with the updated array from the request.
Uninstall USPS from your admin panel and then reinstall it. Unfortunately, you will have to redo all of your settings... but it should be accurate and complete.
In the contribution for USPS Methods 6.1, you should have a PHP page installed that retrieves an updated array from the USPS server.
Type into the address bar "your host... /catalog/admin/USPS_methods_utility.php"
The page will display the array that ...catalog/includes/modules/shipping/usps.php needs to be updated with.
Below is just a snippet of the results you should see, do not use it. Run the USPS_methods_utility.php yourself, because most likely this array is likely to change.
Quote
Utility to get all USPS shipping methods
Copy the following two statements and paste them into function usps in the catalog/includes/modules/shipping/usps.php file overwriting the existing statements that set these variables. Remove the USPS module in admin and then reinstall it in order to make use of the new methods.
Copy the following two statements and paste them into function usps in the catalog/includes/modules/shipping/usps.php file overwriting the existing statements that set these variables. Remove the USPS module in admin and then reinstall it in order to make use of the new methods.
$this->types = array( 'Express Mail' => 'Express Mail<sup>®</sup>', 'Express Mail Hold For Pickup' => 'Express Mail<sup>®</sup> Hold For Pickup', 'Express Mail Flat Rate Boxes' => 'Express Mail<sup>®</sup> Flat Rate Boxes', 'Express Mail Flat Rate Boxes Hold For Pickup' => 'Express Mail<sup>®</sup> Flat Rate Boxes Hold For Pickup',
Open usps.php and replace the code completely with the updated array from the request.
Uninstall USPS from your admin panel and then reinstall it. Unfortunately, you will have to redo all of your settings... but it should be accurate and complete.














