Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Tue Jan 17, 2012 11:34 am 
Offline
CRE Freak
User avatar

Joined: Tue Sep 13, 2005 12:00 am
Posts: 46
Location: Suwanee, GA, USA
It's about to happen again, that easy to miss email the USPS sends you before they makes changes to their Web Tools API that completely break the CRE Loaded USPS Module's ability to calculate shipping quotes which likely crashes your carts ability to process orders at all.

Fun Stuff. We can avoid it though, but we've only got a few days. Here's the info they sent out:



Code:
s integrator;

On January 22, 2012, USPS will update domestic shipping services and international pricing and product features. For detailed information on prices and new product features, please reference the Federal Register Notices viewable at http://pe.usps.com/.

Price Change updates will be available in the Web Tools testing environment for integrator access on or around January 6, 2012. The test environment can be accessed, using your production UserID, via the following URL scheme, host and path:
Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll
Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll

Please note that the changes below are intended to be backwards compatible, however, may not be depending on how individual programs are integrated with the APIs.

Web Tools APIs will be affected in the following manner:
·         All Web Tools APIs with postage prices incorporated will be updated to reflect the price changes;
·         Domestic Rate Calculator API Changes:
o        New <Container> request enumerations added to RateV4 to support the USPS product offerings and prices listed in the Federal Register Notice:
§         FLAT RATE BOX (Express Mail Flat Rate Box),
§         REGIONALRATEBOXC (Priority Mail Regional Rate Box C);
o        New <FirstClassMailType> request enumeration added to RateV4:
§         PACKAGE SERVICE;
o        Optional <ReturnServiceInfo> tag added to RateV4 to return “Loss Guarantee Only” commitment information when an Express Mail Commitment is requested to certain destinations
o        First-Class Mail Package <MailService> response values updated in RateV3 and RateV4 as follows:
§         Postage CLASSID="0" - Retail Pricing
<MailService>First-Class Mail® Package</MailService> will become:
<MailService>First-Class Mail® Parcel</MailService>,
§         Postage CLASSID="61" - Commercial Pricing
<MailService>First-Class Mail® Package</MailService> will become:
<MailService>First-Class Mail® Package Service</MailService>;
o        New response nodes in RateV3 and RateV4 to support the USPS product offerings and prices listed in the Federal Register Notice (Express Mail Flat Rate Box and Priority Mail Regional Rate Box C, specifically);
o        Rate and RateV2 responses will be modified to:
§         Return trademarked product names,
§         Enforce dimensional requirements through error messaging for large, oversize and S-restricted destinations.
·         All Rate Calculator API integrators are encouraged to migrate to the latest API versions (RateV4, IntlRateV2):
o        Rate and RateV2 versions of the domestic Rate Calculator will be retired on March 31, 2012, requiring all integrators to migrate to the latest versions;
·         International Rate Calculator API:
o        New response nodes in IntlRate and IntlRateV2 to support the USPS product offerings and prices listed in the Federal Register Notice (Express Mail Flat Rate Box, specifically);
·         Express Mail Label and Hold For Pickup Express APIs:
o        New <Container> request data tags to support the Express Mail Flat Rate Box;
§         FLAT RATE BOX
·         Delivery Confirmation and Signature Confirmation APIs:
o        New <Container> request data tags to support the Priority Mail Regional Rate Box C;
§         REGIONALRATEBOXC
·         Express Mail International API:
o        New <Container> request data tags to support the Express Mail Flat Rate Box:
§         FLATRATEBOX.

Please contact the USPS Internet Customer Care Center with any questions or concerns at 1-800-344-7779 or uspstechsupport@esecurecare.net.

- Web Tools Program Office


Has any work gone into resolving this yet? I don't want to reinvent the wheel here, but need to get on it quickly if I do need to do so. My shipping module is pretty heavily modified from stock code so I'll need to customize any needed changes for my module...

_________________
-Jerry


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Tue Jan 17, 2012 12:06 pm 
Offline
CRE Freak
User avatar

Joined: Tue Sep 13, 2005 12:00 am
Posts: 46
Location: Suwanee, GA, USA
Just pointed my test site over to the test servers listed above, and sure enough, it will break the USPS Shipping Module...

If you've not been burned by this before, FYI it's nasty, and needs attention now. USPS does it about once a year.

_________________
-Jerry


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Mon Jan 30, 2012 10:04 pm 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
This module should work for you
http://www.oscommerce.com/community/contributions,487
I tested.. uninstall first, and only upload the includes folder.. I didn't look at the admin side addons.. but it does offer every shipping option available (likely overkill)

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Mon Jan 30, 2012 10:34 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
CRE Loaded Expert wrote:
This module should work for you
I tested.. uninstall first, and only upload the includes folder.. I didn't look at the admin side addons.. but it does offer every shipping option available (likely overkill)


Jason... Which module are you referring to? I see a version on your site but I think it only had usps.php in the zip and was from January 2011... I have been inattentive and see that my version no longer works so I need the updated one....

Thank you,
Mike


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Mon Jan 30, 2012 11:02 pm 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
fixed with link

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 10:35 am 
Offline
CRE Talented
User avatar

Joined: Fri Jun 17, 2005 12:00 am
Posts: 287
Ever since the USPS updated their API in January 2012, my First Class Mail International shipping option does not display for the customer during checkout. Only my other two options Express Mail International and Priority Mail International are displayed. I tried to update the USPS module with the link provided in this post, but when I uploaded just the includes folder, my USPS module disappeared in the admin, and it provided me with an error message at the top of the admin/module/shipping page that states: Fatal error: Cannot redeclare xml_unserialize() (previously declared in /home/zippycat/public_html/admin/includes/classes/xml.php:3) in /home/zippycat/public_html/admin/includes/classes/xml_5.php on line 29

At this point I am looking for a fix either for the updated module or the current one I am using, which was downloaded from http://creloaded.org/extensions/Shippin ... tails.html

Thanks,
Paul


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 10:46 am 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
You need to remove the module you are using and use the full version from my link
USPS Methods 6.1a complete
dated 26/ Jan 2012

and make sure you are putting the files int he correct place.. ie not the admin folder.. upload only the includes folder.. and skip the admin files
or even better, just replacing the includes/modules/shipping/usps.php and the language file
includes/languages/english/modules/shipping/usps.php

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 11:07 am 
Offline
CRE Talented
User avatar

Joined: Fri Jun 17, 2005 12:00 am
Posts: 287
Thanks Jason, I will try that. Do I need to make any database changes? I noticed that there are SQL files in that download.

Thanks,
Paul


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 11:09 am 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
If you only use the two files, then no.. it will install when in admin and click install
but you would want to remove any of the admin oscommerce files you may have uploaded and replace them with the cre ones

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 11:16 am 
Offline
CRE Talented
User avatar

Joined: Fri Jun 17, 2005 12:00 am
Posts: 287
I actually tried to update it on one of my other sites. I uninstalled the original USPS module in the admin, then I uploaded (overwrote) the two files you suggested; includes/modules/shipping/usps.php and the language file includes/languages/english/modules/shipping/usps.php, but the USPS module is gone again and I am still getting an error in the admin/modules/shipping page:

Fatal error: require_once() [function.require]: Failed opening required 'includes/classes/xml_5.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/coolgift/public_html/includes/modules/shipping/usps.php on line 13

Any idea why this is happening?

Thanks,
Paul


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 11:33 am 
Offline
CRE Talented
User avatar

Joined: Fri Jun 17, 2005 12:00 am
Posts: 287
I noticed that my includes/classes folder didn't have the xml_5.php file, so I uploaded it from the downloaded files but it didn't fix the issue. I decided to overwrite just the includes/modules/shipping/usps.php with my original file, and the module is back in the admin again, but also with the same problem as I originally had. So there seems to be something in the updated usps.php file from that download that is causing the error message and the module to disappear. Do you have any suggestions?

Thanks,
Paul


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Fri Mar 09, 2012 11:52 am 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
You uploaded/replaced core files with those in the module
double check the errors you see and that will point you to the right place

But looking at the module, you would want to upload the includes/classes/xml_5.php file and very likely want to merge in the usps stuff in includes/classes/xml.php

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: USPS Web Tools API Update again -- 1-22-2012 - IMPORTANT!
PostPosted: Sun Apr 01, 2012 1:38 pm 
Offline
CRE Newbie
User avatar

Joined: Mon May 24, 2010 9:01 am
Posts: 6
For some CRE 6.4.1 PCI B2B sites I have had to tweak this morning, I have removed the current module, used OSCommerce USPS Methods 6_1a, uploading only the /includes/modules/shipping/usps.php and associated language files, uploaded the classes files for both the admin and the public side... at that point i was still throwing errors in the admin about redeclaring certain xml functions, which all finally settled down when i forced the usps.php module to require xml.php (not xml_5.php).

After some trial and error, in /includes/modules/shipping/usps.php

I changed this:

// Incorporate the XML conversion library
if (PHP_VERSION >= '5.0.0') { // PHP 5 does not need to use call-time pass by reference
require_once (DIR_WS_CLASSES . 'xml_5.php');
} else {
require_once (DIR_WS_CLASSES . 'xml.php');
}

to simply:

require_once (DIR_WS_CLASSES . 'xml.php');

And then my module showed up in the CRE admin, and I was able to install it, configure it and test it. I'm not sure why, but my CRE version did not like xml_5.php.

Hope this is helpful.

_________________
-- jeemdesign.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 24, 2012 4:26 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy