Get products from the cart in magento1

[php]
$items = Mage::getSingleton(‘checkout/session’)->getQuote()->getAllVisibleItems();
foreach($items as $item) {

$item_id=$item->getId();
$pro_id= $item->getProductId();
$_product= Mage::getModel(‘catalog/product’)->load($pro_id);
$pro_name = $_product->getName();
$pro_qty = $item->getQty();
$productId = $_product->getId();
$pro_image = (string)Mage::helper(‘catalog/image’)->init($_product, ‘image’)->resize(60);
$productUrl = $_product->getProductUrl();
$delete_item_url = Mage::getUrl(‘checkout/cart/delete’, array(‘id’ => $item_id));
}
[/php]