Bug in USPS Priority Real Time Shipping Rates (did not test other USPS methods)
Testing the USPS Real Time Shipping Rates, my 50 gram item is being changed to 800 ounces for the real time shipping rate. The tester is working fine.
So instead of dividing my gram weight by 30 to get ounces it's being multiplied by 16 (change to pounds?).
I reported on Bug Tracker already. As always would appreciate Steve or Mike's input.
For testing I did the following in file - mod_USPS.php
Find:
Quote:
$_USPS_username = $config['Shipping']['USPS_username'];
|
Above add:
Quote:
$ounces = ($ounces / 16);
$ounces = ($ounces / 30);
if ($ounces < 16) {$ounces = 16;}
echo "<br />" . $ounces . "<br />";
|
I did not test for the shipping dimensions or heavy or multiple items which I'm sure must be part of and complicate the calculations.