<?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 #7889 / Minimum order amount - Virtual Products only don't</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=3737</link>
        <description><![CDATA[<strong>Posted:</strong> 2008-10-18 11:58:48<br/><strong>Category:</strong> Product<br/><strong>Version:</strong> 1.1.6<br/><strong>Priority:</strong> high<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/14869/">paravista</a></strong><br/><br/>I have set my minimum order amount to 50 Euros. But If I only choose virtual products even the amount is 2.000 magento always shows that the minimum order amount has not been reached. As soon as one simple products is in the basket, the total amount is correct (also includes the amount of virtual products). <br />
<br />
If have been searching in the core and the function $this-&gt;getBaseSubtotalWithDiscount() as well as $this-&gt;getGrandTotal() give empty results with Virtual Products only. <br />
<br />
After some investigations: <br />
The function collect(Mage_Sales_Model_Quote_Address $address) file: Mage/Sales/Model/Quote/Address/Quote/subtotal.php is called twice in the basket. <br />
Once it returns the correct total order amount once it is 0. If you have virtual products only then first value is 0 thus the granTotal is 0 as well. With a simple product in basket it is vice versa and you get a correct order amout - so minimum order amout works in that case. <br />
<br />
A probably stupid attempt was to shift the value once it is &gt;0 (in 2 calls) in a temp string and try to call it within the function validateMinimumAmount(), but somehow I failed on it.<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Minimum order amount - Virtual Products only don't</title>
        <description><![CDATA[<em>#1 / Comment by Magento Team</em><br/><br/>Hello paravista,<br />
<br />
This issue was fixed. The changes will be available in the next bugfix release.<br />
<br />
Thank you.]]></description>
    </item>
        </channel>
</rss>