I am trying to get the item quantity in the cart.
For that I am using:Mage::helper('checkout/cart')->getItemsCount()
andMage::helper('checkout/cart')->getSummaryCount()
getSummaryCount() is what I really need, but it always returns the same value as getItemsCount(). For example: If I would have two of the same item in my basket, both functions would return 1. (I want it to return 2)
Why could this be happening?
Add a comment |
1 Answer
Try using below.
Mage::helper('checkout/cart')->getItemsQty(); - Great, thanks, this works! (I'll accept the answer as soon as it allows me to, have to wait 5 minutes).Metal Mathematician– Metal Mathematician2017-04-25 11:48:26 +00:00Commented Apr 25, 2017 at 11:48