Thursday, March 15, 2012

Magento get Product SKU and custom attributes in Product View



Template File: A:\xampp\htdocs\gs\app\design\frontend\default\grayscale\template\catalog\product\view\attributes.phtml


what i have done is in the Product View

i am only showing attributes not equal to 'NO' or greater than zero

and added $_product->getData('range');  to get the custom attributes

and $_product->getSku('sku'); to get the sku value

refer the code file app\code\core\Mage\Catalog\Model\Product.php there are more functions you can use there


















    

No comments:

Post a Comment

About

Blogger templates