gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
-->

Design Guide

This section and its sub-sections show you how to customize the design of the Magento site – we have listed the most common things people ask us help with – although if you have any other questions you can contact us.

Add SKU on Product Description:


By default Magento templates do not show the actual SKU or part number on the product detail pages. However with IT products the product SKU is often important to the buyer – this section shows how you can display this on product detail.

Go to /httpdocs/app/design/frontend/default/yourtemplate/template/catalog/product/view.phtml

To add SKU on Product Description Use the following code:

?php echo $this->__('SKU: ') ?
?php echo nl2br($_product->getSku()) ?

To add EAN on Product Description use the following code:

?php echo $this->__('EAN: ') ?
?php echo nl2br($_product->getEan()) ?

To add MANUFACTURER on Product Description use the following code:

?php echo $this->__('MANUFACTURER: ') ?
?php echo $_product->getAttributeText('manufacturer'); ?

Removing Category (Right) Side Navigation from Product Detail


1.Locate layout/catalog.xml within the theme.
2.Find:
block type="catalog/navigation" after="cart_sidebar" name="leftnav" template="catalog/navigation/hello_left_nav.phtml"/

3.Change to:
!--block type="catalog/navigation" after="cart_sidebar" name="leftnav" template="catalog/navigation/hello_left_nav.phtml"/--

Note: This is specific to hellothemes but basic principal is the same for other themes

Changing the “%s to %s of %s Product(s)”

1.Open the Mage_Catalog.csv file in the locale folder.
2.Add a Line as follows:
"%s to %s of %s Item(s)","%s a %s de %s Producto(s)"
Where “%s a %s de %s Producto(s)” is the new String.

Removing the Email to a Friend and Review the Product Sections of the Product Detail

1.Locate template/catalog/product/view.phtml in the frontend design folder of the theme.
2.The simplest way to get rid of the email to a friend section is to locate the following:
if ($this->canEmailToFriend()):
and change it to:
if (false && $this->canEmailToFriend()):

To Disable the Review Text in the Main Description locate:

echo $this->getReviewsSummaryHtml($_product, false, true)
and comment it, like so:
//echo $this->getReviewsSummaryHtml($_product, false, true)

Hello Themes Lightbox Alternate Images

1. Locate template/catalog/product/view/media.phtml in the themes frontend folder.
2. Find:
a class="group" rel="group" href="helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(600, 600); ?>helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>" title="htmlEscape($_image->getLabel()) ?>" >

Change to:

a class="group" rel="group" href="helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getUrl())->resize(600, 600); ?>helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>" title="htmlEscape($_image->getLabel()) ?>" >

 

You only need to replace the word getFile with getUrl in the first line of the above

Let us know if we missed anything...

Leave a Comment

You must be logged in to post a comment.