How to get number of cart items in Magento

By | 9 Dec |Categories: E-Commerce, Magento|Tags: , |

To get number of cart items in Magento e.g. to display in the mini-cart or header of your Magento e-commerce website, you can call the getSummaryCount() function in Mage Helper file checkout/cart: echo $this->helper(‘checkout/cart’)->getSummaryCount(); [...]