If you’re putting a shopping cart area anywhere other than the standard cart side block, then you’ll probably want to show how many items are in the cart at any one time. Here’s how:

<br /> $cart = Mage::getModel('checkout/cart')->getQuote()->getData();<br /> if(isset($cart['items_qty'])){<br /> if($cart['items_qty'] != 1) {<br /> echo "You have " . (int)$cart['items_qty'] . " items in your shopping cart";<br /> } else {<br /> echo "You have " . (int)$cart['items_qty'] . " item in your shopping cart";<br /> }</p> <p>} else {<br /> echo "You have 0 items in your shopping cart"<br /> }<br />