Friday, 21 December 2012

Magento current product Id


 if(Mage::registry('current_product')) {
        $current_product_id = Mage::registry('current_product')->getId();
        echo $current_product_id;
    }

No comments:

Post a Comment