Jump to content

USPS shipping stopped working? Cart can't progress?


scythe000

Recommended Posts

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>

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...