Page 1 of 2 12 LastLast
Results 1 to 10 of 14

USPS Shipping not working in new OSCMAX RC2

This is a discussion on USPS Shipping not working in new OSCMAX RC2 within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; I am having trouble with my shipping module. I get an error: United States Postal Service An error occured with ...

      
  1. #1
    Member Cisco's Avatar
    Join Date
    Feb 2003
    Posts
    89
    Rep Power
    0


    Default USPS Shipping not working in new OSCMAX RC2

    I am having trouble with my shipping module.

    I get an error:

    United States Postal Service
    An error occured with the USPS shipping calculations.
    If you prefer to use USPS as your shipping method, please contact the store owner.

    I have another store that is working find, just can't pin point this one.

    All settings are the same as the other store that is working correctly.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: USPS Shipping not working in new OSCMAX RC2

    There were no changes to usps in RC2 from RC1. If there is a problem it is how you have it configured.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member Cisco's Avatar
    Join Date
    Feb 2003
    Posts
    89
    Rep Power
    0


    Default RE: USPS Shipping not working in new OSCMAX RC2

    Do you have an idea where I may start looking. I have compared all the files nad found no difference either. My other site is working just fine. Im clueless at this time.

  4. #4
    Member Cisco's Avatar
    Join Date
    Feb 2003
    Posts
    89
    Rep Power
    0


    Default RE: USPS Shipping not working in new OSCMAX RC2

    Check this if yo have a sample customer set-up or a customer calls and says that they are not getting a shipping fee.

    Check the numbers like zip code. This is the error that I had it had 6 digits (two 8's in stead of one) in the zip code.

    This may been something that needs to be correctec in the shipping modul.

    Verify that there are 5 digits for the zip code.

    Could there be a zip code validator to bounce against awebsite that already carrys all the zip codes?

  5. #5
    Lurker
    Join Date
    Mar 2006
    Posts
    1
    Rep Power
    0


    Default

    My USPS config was working, I added the FedEx module, and USPS quit working and even removing it and re-building it didn't help. I have correct user and pass, zip code is correct, etc etc.

    Thots?

    Ed

  6. #6
    New Member
    Join Date
    Mar 2006
    Posts
    6
    Rep Power
    0


    Default Updated info

    Ok, still having the problem with the message

    "An error occured with the USPS shipping calculations.
    If you prefer to use USPS as your shipping method, please contact the store owner."

    I have the USPS ShippingAPI userid in the shipping module config, password is blank since USPS doesn't use or require it now, all settings in there are defaults that seem like they wouldn't make any difference. The 'test' server is selected, and I have double checked the correct zip code is set for my store, as well as for all addresses that are being used to send test orders. I have also made sure no zone calculations are turned on to complicate things.

    I don't mind trying to debug this, but it's hard to understand where the error is really coming from. PHP files involved don't seem to contain the error code I see above, unless I just missed the one I need to find yet. SO, I'm not sure where the error is being thrown.

    Any suggestions?

    Thx,

    Ed

  7. #7
    New Member
    Join Date
    Mar 2006
    Posts
    6
    Rep Power
    0


    Default

    In usps.php I uncommented the line to send mail to me, and this is the repsonse I'm getting from the USPS server:

    <?xml version="1.0"?>
    <Error><Number>-2147219040</Number><Source>SOLServerRatesTest;SOLServerRate sTest.Rate_Respond</Source><Description>RateRequest is no longer supported. Use RateV2Request for canned tests.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error>


    SO now I'm looking into how to change the code for RateV2Request if that's truly the thing needed to fix this problem...

    Ed

  8. #8
    New Member
    Join Date
    Mar 2006
    Posts
    6
    Rep Power
    0


    Default

    Sure enough, the request that gets sent ends like this with RateRequest at the end...but changing the single instance of that in the USPS.php file to RateV2Request doesn't fix it....ANYONE got a clue on this? Shouldn't be this hard to find and fix, but I'm missing something.

    API=Rate&XML=%3CRateRequest+USERID%3D%22814EDS ET2311%22+PASSWORD%3D%22%22%3E%3CPackage+ID%3D%220 %22%3E%3CService%3EExpress
    %3C%2FService%3E%3CZipOrigination%3E45385%3C%2FZip Origination%3E%3CZipDestination%3E45434%3C%2FZipDe stination%3E%3CPounds%3E3%3
    C%2FPounds%3E%3COunces%3E0%3C%2FOunces%3E%3CContai ner%3ENone%3C%2FContainer%3E%3CSize%3EREGULAR%3C%2 FSize%3E%3
    CMachinable%3EFalse%3C%2FMachinable%3E%3C%2FPackag e%3E%3CPackage+ID%3D%221%22%3E%3CService%3EFirst+C lass%3C%2FService%3
    E%3CZipOrigination%3E45385%3C%2FZipOrigination%3E% 3CZipDestination%3E45434%3C%2FZipDestination%3E%3C Pounds%3E3%3C%2FPounds%3E%3
    COunces%3E0%3C%2FOunces%3E%3CContainer%3ENone%3C%2 FContainer%3E%3CSize%3EREGULAR%3C%2FSize%3E%3CMach inable%3EFalse%3
    C%2FMachinable%3E%3C%2FPackage%3E%3CPackage+ID%3D% 222%22%3E%3CService%3EPriority%3C%2FService%3E%3CZ ipOrigination%3E45385%
    3C%2FZipOrigination%3E%3CZipDestination%3E45434%3C %2FZipDestination%3E%3CPounds%3E3%3C%2FPounds%3E%3 COunces%3E0%3C%2FOunces%
    3E%3CContainer%3ENone%3C%2FContainer%3E%3CSize%3ER EGULAR%3C%2FSize%3E%3CMachinable%3EFalse%3C%2FMach inable%3E%3C%2FPackage
    %3E%3CPackage+ID%3D%223%22%3E%3CService%3EParcel%3 C%2FService%3E%3CZipOrigination%3E45385%3C%2FZipOr igination%3E%3C
    ZipDestination%3E45434%3C%2FZipDestination%3E%3CPo unds%3E3%3C%2FPounds%3E%3COunces%3E0%3C%2FOunces%3 E%3CContainer%3ENone%
    3C%2FContainer%3E%3CSize%3EREGULAR%3C%2FSize%3E%3C Machinable%3EFalse%3C%2FMachinable%3E%3C%2FPackage %3E%3C%2FRateRequest%
    3E

  9. #9
    New Member
    Join Date
    Mar 2006
    Posts
    6
    Rep Power
    0


    Default

    Ok, got that one solved....fix your shipping.php file to look like this for domestic rate requests...internaiional ones remain the same as before. USPS DID CHANGE the name of the API dll. Go figure.

    $request = '<RateV2Request USERID="' . MODULE_SHIPPING_USPS_USERID . '" PASSWORD="' . MODULE_SHIPPING_USPS_PASSWORD . '">';

    $request .= '</RateV2Request>';

    $request = 'API=RateV2&XML=' . urlencode($request);


    NOW...if anyone knows how to get it to take what I know is a VALID ORIGINATION ZIP CODE...let me know. That's all it's complaining about now. Still getting the message saying errors occured, but now I have at least a message with a hint in it!

    ?xml version="1.0"?>
    <Error><Number>-2147219490</Number><Source>Rate_Respond;SOLServerRatesTest. RateV2_Respond</Source><Description>Invalid value for origin ZIP Code.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error>

    Ed

  10. #10
    Lurker
    Join Date
    Aug 2003
    Location
    Cincinnati
    Posts
    2
    Rep Power
    0


    Default

    Hello there -I am having trouble with the USPS shipping module as well. I read through this post and made the recommended modifications - but I am still getting the error

    United States Postal Service
    An error occured with the USPS shipping calculations.
    If you prefer to use USPS as your shipping method, please contact the store owner.

    Does the fact that they no longer require a password an issue or is the API Name (Ratev2) the real issue? As mentioned I made the change in my /includes/modules/shipping/usps.php file but I am still not connected. Any help would be greatly appreciated. I am supposed to launch this site on Friday.

    Thanks
    John

Page 1 of 2 12 LastLast

Similar Threads

  1. USPS shipping module not working, doesnt show up before paym
    By Redeye_Joe in forum osCMax v2 Features Discussion
    Replies: 12
    Last Post: 02-26-2006, 09:02 PM
  2. USPS shipping weights
    By pahalik in forum osCMax v1.7 General Mods Discussion
    Replies: 4
    Last Post: 01-07-2005, 01:39 PM
  3. USPS shipping module.
    By pahalik in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 01-02-2005, 01:38 AM
  4. usps shipping estimator
    By mattkern in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 12-06-2004, 03:05 PM
  5. handling charges in usps shipping
    By menakamk in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-03-2003, 09:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •