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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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
| ||||
| ||||
| 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
|
|
#3
| ||||
| ||||
| 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
| ||||
| ||||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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 |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| USPS shipping module not working, doesnt show up before paym | Redeye_Joe | osCMax v2 Features Discussion | 12 | 02-26-2006 09:02 PM |
| USPS shipping weights | pahalik | osCMax v1.7 General Mods Discussion | 4 | 01-07-2005 01:39 PM |
| USPS shipping module. | pahalik | osCommerce 2.2 Modification Help | 4 | 01-02-2005 01:38 AM |
| usps shipping estimator | mattkern | osCMax v1.7 General Mods Discussion | 2 | 12-06-2004 03:05 PM |
| handling charges in usps shipping | menakamk | osCommerce 2.2 Modification Help | 0 | 01-03-2003 09:22 AM |