Search

Resume and bio of the author Couple of articles related to my hobby - robotics
My impressions about immigration to Australia. In Russian only. Recipes for everyday problems solving
Linux-related posts Windows-related posts
Software-related posts A lot of info about hardware
Different tools you might find useful Posts about various web technologies
Everything that doesn't fit the rest of the menu RSS feed for this blog

Tag Cloud

Archives

Links

Andrey Mikhalchuk’s Blog

Technoblog about life

Feb 3, 2008 How to configure USPS module for osCommerce (notes on installation and configuration)

The purpose of this post is not to replace the original USPS installation manual, but to provide answers that you might have while installing it. It is based on my own experience and might be different from yours. This post is a part of set related to installing and configuring your own store. Please read the master post here.

  1. You need to signup for USPS web tools. You can do it here: https://secure.shippingapis.com/registration/
  2. In a few minutes you’ll get the email with your web tools login and password.
  3. Send email to icustomercare@usps.com asking to switch your account to production server. You don’t have to test or wait. Indeed you should not do that as API used on USPS test servers doesn’t match the API used on production servers (sic!!). I.e. your osCommerce standard USPS shipping plugin won’t work with test servers! Actually that plugin is hardcoded to use production servers, but even if you patch it USPS test servers will return you error while production server will work fine.
  4. After your account is switched to production you can go to admin menu of osCommerce->Modules->Shipping->United States Postal Sevice and configure it with your account data.
  5. You can also test it on a fake order. If the plugin works correctly and you will get shipping rates from USPS sever on checkout page.
This post is published in Building your store, How To, Web.

8 Responses to “How to configure USPS module for osCommerce (notes on installation and configuration)”

  1. How to establish your own internet store with osCommerce, USPS shipping, Paypal Pro payment and Coupons | Andrey Mikhalchuk's Blog Says:

    [...] Comments How to configure USPS plugin for osCommerce (notes on installation and configuration) | Andrey Mikha… on How to establish your own internet store with osCommerce, USPS shipping, Paypal Pro payment and [...]

  2. Lewis Says:

    I followed your suggestion on setting up usps for oscommerce. When I run the dummy order at checkout it recognizes that usps module is there but it simply says an error occurred. There is no other explanation. The production server is switched on. In their email they suggested I remove the word “test” from a line of code as follows:

    “There is a line of code that refers to “shippingapitest.dll”. You’ll need to remove the word “test”.”

    I have done that. Still the same results. Any suggestions will be appreciated.

  3. Andrey Mikhalchuk Says:

    Lewis,

    Sorry, I need more details on your situation. Please run some kind of sniffer (like tcpdump) and take a look at the messages the module and USPS are exchanging with. The command should look like “tcpdump -i eth0 -s 1500 -w dump.pcap”. If you can’t resolve the situation please send me the dump (dump.pcap file) and I’ll try to help you.

    The .dll name should be “/shippingapi.dll”

    Please also check the plugin forum – you might be using a newer version of the plugin and it might have new bugs.

    Good luck!
    Andrey

  4. Lewis Says:

    Hello Andrey.

    Thanks for your response. I have done response dump in the usps module and I get the following results:

    ” string(1490) ” -2147219498DomesticRatesV2;RateEngineV2.ProcessRequestPlease enter a valid ZIP Code for the sender. 1000440-2147219498DomesticRatesV2;RateEngineV2.ProcessRequestPlease enter a valid ZIP Code for the sender. 1000440-2147219498DomesticRatesV2;RateEngineV2.ProcessRequestPlease enter a valid ZIP Code for the sender. 1000440-2147219498DomesticRatesV2;RateEngineV2.ProcessRequestPlease enter a valid ZIP Code for the sender. 1000440 ”

    I have searched the admin panel over and I cannot locate a place for the sender zip code. Can you tell me how to find that, please.

    Lewis

  5. Andrey Mikhalchuk Says:

    Lewis,

    In admin interface try Configuration->Shipping/Packaging->Postal Code. I think this is the code this plugin requires.

    Andrey

  6. Brandon Says:

    Thanks for this page! the address for usps webtools in the module is wrong. This helped me get up and going!

    To prevent further delay when you email USPS and ask to be switched to production server include the fact you use OSC. Or they will wait until they see successful api tests {will never happen} before they switch you over.

    If you are getting mysterious weights win the shipping calculator make sure tare weight under Configuration-Shipping/Packaging-Package Tare Weight is set low {whatever the box weighs} took me a while to figure this one out.

  7. Ann Says:

    Hi

    followed the above instructions and get the error
    Warning: fsockopen() [function.fsockopen]: unable to connect to production.shippingapis.com:80 (Operation not permitted) in /home/u5/magicaltoffee/html/shop/catalog/includes/classes/http_client.php on line 330

    Any advice? greatly appreciated.

  8. Sashikanth Says:

    Hi, iam getting an error in usps module, which worked previously.
    I also have the UPS module in my OSC.
    Please help me. (dskanth.99@gmail.com). I would help you if you advise me.

Leave a Reply

You must be logged in to post a comment.

Site Map (c) Andrey Mikhalchuk, 2005-2008