scythe000 Posted April 14, 2012 Share Posted April 14, 2012 I've got a really big problem! For some reason, USPS shipping seems to have stopped working! I wanted to do a test transaction, and nothing I do seems to get shipping to show up during checkout and now my cart is stuck in a loop it seems. Help! Quote Link to comment Share on other sites More sharing options...
scythe000 Posted April 14, 2012 Author Share Posted April 14, 2012 This error shows in the request log: Request Sent - http://production.shippingapis.com/ShippingAPI.dll API=RateV4&XML=<RateV4Request USERID="392ONSAN7399"> <Package ID="0"> <Service>ALL</Service> <ZipOrigination>93001</ZipOrigination> <ZipDestination>93001</ZipDestination> <Pounds>6</Pounds> <Ounces>8</Ounces> <Container>VARIABLE</Container> <Size>REGULAR</Size> <Machinable>False</Machinable> <ReturnLocations>TRUE</ReturnLocations> <ShipDate>13-Apr-2012</ShipDate> </Package></RateV4Request> Response received <?xml version="1.0"?> <RateV4Response><Package ID="0"><Error><Number>-2147219421</Number><Source>DomesticRatesV4;clsRateV4.ValidateShipDate;RateEngineV4.ProcessRequest</Source><Description>Ship Date must be within the next three days.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV4Response> Quote Link to comment Share on other sites More sharing options...
scythe000 Posted April 14, 2012 Author Share Posted April 14, 2012 Holy Sh1t, i fixed it! I saw from here: http://forums.oscommerce.com/topic/146950-contribution-usps-methods/page__st__1120 that the ship date info isn't even necessary to send at all. I went to /modules/shipping/USPS/shipping.class.php and commented out this line: // $xml->writeElement('ShipDate',date("d-M-Y")); and voila!it worked again! Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted April 16, 2012 Share Posted April 16, 2012 Thanks for letting us know about this. We have removed that line from the next release. Quote Link to comment Share on other sites More sharing options...
scythe000 Posted May 7, 2012 Author Share Posted May 7, 2012 Glad to help. ETA on release? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.