Magento 1.8 – Difference Between cart getItemsCount() and getSummaryCount()

cartmagento-1.8shopping-cart-price-rules

I am displaying the total items present in the cart at header.
I am able to display the count of items.

But I am bit confused between two methods of cart

1. Mage::helper('checkout/cart')->getItemsCount()
2. Mage::helper('checkout/cart')->getSummaryCount();

For me 1st one returns 1 item in cart and 2nd one returns 6 items in cart, Which is correct one and what is the difference these two functions..

Thanks.

Best Answer

Mage::helper('checkout/cart')->getItemsCount() -- return shopping cart items count means how many sku add to shopping cart.
Mage::helper('checkout/cart')->getSummaryCount() -- return shopping cart items summary (suppose you add sku1 6 qty and sku2 3 qty = total 9 qty return)
Related Topic