cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Short Description to Long Description Area

Moving Short Description to Long Description Area

I'd like to move my short description from the top area of my page (originally called in view.phtml) to the main description area (description.phtml). I've tried updating my description.phtml file with the following 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;?>

I inserted this just above the long description area. However, this just breaks the description area altogehter. 

1 REPLY 1

Re: Moving Short Description to Long Description Area

The object belonging to variable $_product doesn't exist in description.phtml. Try this code instead:

 

<?php $_shortDescription = $this->getProduct()->getShortDescription(); ?>
<?php if ($_shortDescription): ?>
        <?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), nl2br($_shortDescription), 'short_description') ?>
<?php endif; ?>