Magento Forum

SKU as Additional information
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

hi there,

Is it possible to make attribute of SKU Visible on Catalog Pages on Front-end ??

How to make it ? cause the option “Visible on Catalog Pages on Front-end” at SKU attribute is not appear.....

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

You will need to edit app/design/frontend/default/your_theme/template/catalog/product/list.phtml and add <?php echo $_product->getSku() ?> wherever you like it to be.

 
Magento Community Magento Community
Magento Community
Magento Community
 
alkarim
Guru
 
Total Posts:  368
Joined:  2008-04-10
 

thanks for your quick reply, but it’s not what I needed

and I’ve found it, I think that is not quite good to code but it works

at app/code/core/Mage/Catalog/Block/Product/View.php line 74

if (($attribute->getIsVisibleOnFront() && $attribute->getIsUserDefined()) || $attribute->getName() == 'SKU'{
 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Well i guess that would work too smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top