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();
}

 

Loading

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.