Posted almost 6 years ago. Visible to the public.

Getting The Amount Of Items in the Cart

To get the amount of line items (i.e. 10 of 1 product is 1):

Copy
Mage::helper('checkout/cart')->getItemsCount();

To get the total number of items (i.e. 10 of 1 product is 10):

Copy
Mage::helper('checkout/cart')->getSummaryCount();

Owner of this card:

Avatar
Mike Whitby
Last edit:
over 5 years ago
Posted by Mike Whitby to Magento
This website uses cookies to improve usability and analyze traffic.
Accept or learn more