Get Cart Items in Magento

Use the below code to get All cart items in Magento

$cartHelper = Mage::helper('checkout/cart');
$items = $cartHelper->getCart()->getItems();

foreach ($items as $item) {
echo $item->getItemId();
}

Cheers!
Amjath

Leave a Reply

Your email address will not be published. Required fields are marked *