Display SKU in product details in Magento

margaret
6 Posts
margaret posted this 30 May 2018

I need to be able to display the SKU in the product details page in magento
How do I do this?
Thanks

I need to be able to display the SKU in the product details page in magento How do I do this? Thanks
Vote to pay developers attention to this features or issue.
3 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 30 May 2018

Hello,

Please try adding CMS Code control as described here:
https://answers.themler.io/articles/93872/tips-tricks

Sincerely,
Nettie,
BillionDigital Team

Hello, Please try adding CMS Code control as described here: https://answers.themler.io/articles/93872/tips-tricks Sincerely, Nettie, BillionDigital Team
vishal.mage.certified01
1 Posts
vishal.mage.certified01 posted this 15 August 2018

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
margaret
6 Posts
margaret posted this 16 August 2018

All good thanks.

All good thanks.
You must log in or register to leave comments