johnquest Posted January 24, 2006 Posted January 24, 2006 I've been trying to get the USPS module working. I'm using the USPS_2.8c contrib, the latest. I've got it set up right, is working in production but the display isn't showing right: "United States Postal Service (1 x 2.1lbs) (Priority Mail9.00)" I can't figure out how to have the fee appear in the "fee" column instead of next to the shipping method. The fee isn't being calculated either and is 0.00 in the fee column. I went to shipping_estimator.php and into the usps.php files. I'm not sure if there's possibly a mistake in how the XML response from the USPS server is being read into the output of the shipping estimator and order totals or what? Any help out there for a fix? Thanks Quote
johnquest Posted January 24, 2006 Author Posted January 24, 2006 I've been trying to get the USPS module working. I'm using the USPS_2.8c contrib, the latest. I've got it set up right, is working in production but the display isn't showing right: "United States Postal Service (1 x 2.1lbs) (Priority Mail9.00)" I can't figure out how to have the fee appear in the "fee" column instead of next to the shipping method. The fee isn't being calculated either and is 0.00 in the fee column. I went to shipping_estimator.php and into the usps.php files. I'm not sure if there's possibly a mistake in how the XML response from the USPS server is being read into the output of the shipping estimator and order totals or what? Any help out there for a fix? Thanks This is the XML response I get back from USPS (bold indicates changes in /includes/modules/shipping/usps.php to accomodate) <?xml version="1.0"?> <RateV2Response> <Package ID="0"> <ZipOrigination>68507</ZipOrigination> <ZipDestination>68507</ZipDestination> <Pounds>1</Pounds> <Ounces>8</Ounces> <Size>REGULAR</Size> <Zone>1, local</Zone> <Postage> <MailService>Express Mail PO to Addressee</MailService> <Rate>18.80</Rate> (not sure how to change) </Postage> </Package> <Package ID="1"> <ZipOrigination>68507</ZipOrigination> <ZipDestination>68507</ZipDestination> <Pounds>1</Pounds><Ounces>8</Ounces> <Size>REGULAR</Size> <Zone>1, local</Zone> <Postage> <MailService>Priority Mail</MailService> <Rate>4.20</Rate> </Postage> </Package> <Package ID="2"> <ZipOrigination>68507</ZipOrigination> <ZipDestination>68507</ZipDestination> <Pounds>1</Pounds> <Ounces>8</Ounces> <Size>REGULAR</Size> <Machinable>TRUE</Machinable> <Zone>1, local</Zone> <Postage> <MailService>Parcel Post</MailService> <Rate>3.30</Rate> </Postage> </Package> </RateV2Response> I'm afraid the shipping.php class also might need to be changed as well as shipping_estimator.php but I'm not sure. Any help? Quote
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.
Note: Your post will require moderator approval before it will be visible.