Last Updated: February 25, 2016
·
787
· dubrod

Magento Cart Quantity # in Header

<?php $_cartQty = $this->getSummaryCount(); if ($_cartQty>0) { if ($_cartQty==1) { echo $this->__('%s', $this->getUrl('checkout/cart')); } else { echo $this->__('%s', $this->getUrl('checkout/cart'), $_cartQty); } } else { echo $this->__('0'); } ?>