Websnippetz

Get cool snippets on php, css, jQuery, Magento and wordpress

Category: Magento

If you want to get cart total items quantity from magento shopping cart, you can use the below snippet. function getCartQty(){ $cartcollection = Mage::getModel(‘checkout/cart’)->getQuote()->getData(); if (isset($cartcollection[‘items_qty’])) return (int)$cartcollection[‘items_qty’]; else return…