I am using Magento eCommerce and I have modified my header.phtml via the Blank template. Code, this is my code but it shows blank.
There was an answer to a link before by someone called SUHUR I think, I was going to reward him with the answer but it seems he deleted his own post?
He linked to this: http://nothingtopost.wordpress.com/tag/how-to-get-total-cart-item-in-magento/
I modified my code and this works now on .phtml files.
helper('checkout/cart')->getSummaryCount(); //get total items in cart
$total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price
if($count==0)
{
echo $this->__('(0 ITEMS)',$count);
}
if($count==1)
{
echo $this->__('(1 ITEM)',$count);
}
if($count>1)
{
echo $this->__('(%s ITMES)',$count);
}
echo $this->__('', $this->helper('core')->formatPrice($total, false));
?>