0
点赞
收藏
分享

微信扫一扫

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

我是小小懒 2023-04-03 阅读 45


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

 

举报

相关推荐

0 条评论