Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Adding sku # to product view. 
 
mikeinspain
Sr. Member
 
Avatar
Total Posts:  108
Joined:  2007-10-08
Alicante, Spain
 

Hi all

I have a couple of questions that I hope someone can help me with.

I would like to add the product sku/code # within the product details as these are referenced by the trade customers as well as the actual store.  Please see the screenshot below:

http://img.skitch.com/20080917-eefm6kceexfxeymnjs768ew3k.preview.jpg
Click for full size - Uploaded with plasq‘s Skitch

Also is is possible to change the default sizes for all images? Specifically the thumbnail ones (smaller) , again see the screenshot below:

http://img.skitch.com/20080917-mbpqcck9raf3d1gkm969yccjrc.preview.jpg
Click for full size - Uploaded with plasq‘s Skitch

 
Magento Community Magento Community
Magento Community
Magento Community
 
Richard H
Jr. Member
 
Total Posts:  12
Joined:  2008-04-07
 

add

<? echo $_product->getResource()->getAttribute('sku')->getFrontend()->getValue($_product);?>
to /app/design/frontend/default/default/template/catalog/products/view.phtml (replace default/default with your template if you’re not using the default)
after
<?php $_product $this->getProduct() ?>
on the place where you want to show the value.

Or you can place it in another template that’s related to view.phtml, like /app/design/frontend/default/default/template/catalog/products/view/attributes.phtml

 
Magento Community Magento Community
Magento Community
Magento Community
 
mikeinspain
Sr. Member
 
Avatar
Total Posts:  108
Joined:  2007-10-08
Alicante, Spain
 

Richard thanks..

 
Magento Community Magento Community
Magento Community
Magento Community
 
joya-joya
Jr. Member
 
Total Posts:  28
Joined:  2008-08-17
 

Perfect! I’ve been trying to get this and everyone else’s suggestions resulted in an error. Thanks Richard!

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