I need to be able to display the SKU in the product details page in magento
How do I do this?
Thanks
You have use following code.
$productId = YOUR PRODUCT ID;
echo $_product = Mage::getModel('catalog/product')->load($productId)->getSku();
Hope this will help for you.
Thanks
Vishal
Magento Certified
> I need to be able to display the SKU in the product details page in magento
> How do I do this?
> Thanks
>
You have use following code.
$productId = YOUR PRODUCT ID;
echo $_product = Mage::getModel('catalog/product')->load($productId)->getSku();
Hope this will help for you.
Thanks
Vishal
Magento Certified