magento get current product

If you want to get the current product info in magento . Than we can use the magento registery to get the current product info.

$proid = Mage::registry('current_product')->getId();
$pro= Mage::getModel('catalog/product')->load($proid);

echo '<pre>';
print_r($pro->getData());
echo '<pre>';

Leave a Reply