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). Commented Apr 25, 2017 at 11:48

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.