cancel
Showing results for 
Search instead for 
Did you mean: 

Cart In Header

Cart In Header

Hello all, I am currently running magento 1.5.1.0. I am trying to put my cart into my header, not really a fancy one or anything just basically the price and item quantity. So far i have been able to call the price and quantity to the header. My problem is when you load another page the cart shows it going back to zero unless you click on the actual my cart link it will populate my cart again with the right info. It seems to lose the session everytime a new page is clicked. Here is the code i am using

 

 

helper('checkout/cart')->getSummaryCount(); //get total items in cart $total = $this->helper('checkout/cart')->getQuote()->getGrandTotal(); //get total price if($count==0) { echo $this->__('Items: %s',$count); } if($count==1) { echo $this->__(' Item: %s',$count); } if($count>1) { echo $this->__(' Items: %s',$count); } echo $this->__(' Total: %s', $this->helper('core')->formatPrice($total, false)); ?>

any help with this would be greatly appreciated as i am still a novice Thanks in advance !