1

I am trying to get the item quantity in the cart.

For that I am using:
Mage::helper('checkout/cart')->getItemsCount()
and
Mage::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?

1 Answer 1

1

Try using below.

Mage::helper('checkout/cart')->getItemsQty();
1
  • Great, thanks, this works! (I'll accept the answer as soon as it allows me to, have to wait 5 minutes). Apr 25, 2017 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.