magento 获得当前产品页面的产品id

$product_id = Mage::registry('current_product')->getId();
原文地址:https://www.cnblogs.com/cangzhou/p/3874909.html