$product_id = Mage::registry('current_product')->getId(); 转载于:https://www.cnblogs.com/cangzhou/p/3874909.html