Magento : Get Current Product On Product Page From Registry

Yo can get the Magento current product in the registry or on product detail page in frontend UI.
Syntax: Mage::registry(‘current_product’);

Ex. Mage::registry(‘current_product’)->getName(); // get name of product

Leave a Reply