Show SKU in Magento 1.9

Web Development Hits: 93

Navigate to app\design\frontend\rwd\default\template\catalog\product\view.phtml

 

Find the code:

 

<?php if ($_product->getShortDescription()):?>

       <div class="short-description">

            <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div>

                </div>

  <?php endif;?>

 

Add the below code:

 

<div class="std">    

     <?php echo $_helper->productAttribute($_product, nl2br($_product->getSku()), 'sku') ?>

</div>

 

above previous code. Stylise with <hr> tag

 

Example:

 

<div class="std">

     SKU: <?php echo $_helper->productAttribute($_product, nl2br($_product->getSku()), 'sku') //Mike added?>

</div>

<hr>

 

 

Print

Related Articles