osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-26-2005, 08:45 AM
Cisco's Avatar
Member
 
Join Date: Feb 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cisco
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-26-2005, 11:09 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-26-2005, 11:11 AM
Cisco's Avatar
Member
 
Join Date: Feb 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cisco
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-26-2005, 11:25 AM
Cisco's Avatar
Member
 
Join Date: Feb 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cisco
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-18-2006, 06:33 AM
Lurker
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
daviswe
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 03-19-2006, 05:40 AM
New Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
edsets
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-19-2006, 07:32 AM
New Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
edsets
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 03-19-2006, 08:09 AM
New Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
edsets
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-19-2006, 09:39 AM
New Member
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
edsets
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 03-29-2006, 02:15 PM
Lurker
 
Join Date: Aug 2003
Location: Cincinnati
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
jdguinn
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 07:33 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax