Magento:在head.phtml中获取产品属性 echo a product attribute in magento head.phtml

$product = Mage::registry('current_product');
if ($product) //sometimes need check for instanse, use instanseof
{
    $product->getSku();
}

 

Leave a Reply