Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Fix qty in My Cart - Solution
 
Tweakmag
Guru
 
Avatar
Total Posts:  307
Joined:  2007-08-31
London, UK
 

Here is the solution to display the actual number of items in your cart - rather than the number of unique products.
For example, if I add 2x Product x - then the cart summary says that I have 1 item in my cart (but in the header it says that I have 2 items).

To fix this, open \app\design\frontend\default\default\template\checkout\cart\sidebar.phtml and change line 32 from…

<h4><?=__('My Cart')?> <span class="count">- <a href="<?=$this->getUrl('checkout/cart')?>"><?=__('%d item(s)'$this->getItemCollection()->getSize())?></a></span></h4>

to

<h4><?=__('My Cart')?> <span class="count">- <a href="<?=$this->getUrl('checkout/cart')?>"><?=__('%d item(s)'Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty())?></a></span></h4>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top