<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #10874 / USPS Weight Calculation causing problems (plus fix</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=5193</link>
        <description><![CDATA[<strong>Posted:</strong> 2009-02-10 22:37:53<br/><strong>Category:</strong> Single Page Checkout<br/><strong>Version:</strong> 1.2.0.3<br/><strong>Priority:</strong> urgent<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/51873/">Jonathan123</a></strong><br/><br/>There was a report of this with #7692, but the suggested fix is incorrect.(Actually, it is correct for the problem they were having, but incomplete to deal with other problems.)<br />
<br />
We had received complaints from customers in Canada about having no USPS shipping options show up. Upon inspection I noticed that Magento was passing (for example) weight_ounces=11.3728. Looking at the USPS Rate Calculator specs, it looks like they want at most a tenth of an ounce precision.<br />
<br />
So, the following change is needed on line 129 of app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php<br />
<br />
Change:<br />
$r-&gt;setWeightOunces(($weight-floor($weight))*16);<br />
to<br />
$r-&gt;setWeightOunces(round(($weight-floor($weight))*16, 1));<br />
<br />
After this change the cart is showing shipping options for all size orders.<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: USPS Weight Calculation causing problems (plus fix</title>
        <description><![CDATA[<em>#1 / Comment by <a href="http://www.magentocommerce.com/boards/member/48717/">smartplugsdesign</a></em><br/><br/>This is still a problem in 1.2.1 as well.<br />
<br />
We ran into the same issue which was completely blocking our International Sales, so I changed line 139 (in 1.2.1) to the following:<br />
<br />
$r-&gt;setWeightOunces(floor(($weight-floor($weight))*16));<br />
<br />
This is the same code used in _setFreeMethodRequest().<br />
<br />
-smartplugsdesign]]></description>
    </item>
            <item>
        <title>RE: USPS Weight Calculation causing problems (plus fix</title>
        <description><![CDATA[<em>#2 / Comment by Magento Team</em><br/><br/>Hello Jonathan123,<br />
<br />
This issue was fixed. The changes will be available in the next bugfix release.<br />
<br />
Thank you.]]></description>
    </item>
        </channel>
</rss>