How we get items in shopping cart using models in Magento?
It is simple, Please following code.
$cart = Mage::helper(‘checkout/cart’);
$totalItems = $cartHelper->getCart()->getItems();
foreach ($items as $item) {
$itemId = $item->getItemId();
$count=$item->getQty();
}