View Single Post
  #80  
Old 12-27-2012, 06:02 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart v4.5.4 released

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.
__________________
WooCommerce as of 10/2022