Showing posts with label description. Show all posts
Showing posts with label description. Show all posts

Saturday, November 21, 2009

Show description in the product list page (for Vania)

This is an answer for 
http://www.magentocommerce.com/boards/viewthread/67466/
Problem: Show the product long description on the list page.
Hi Vania. You can use in the list.phtml file this.
$_product->getDescription(); 
[UPDATE] For Magento versions that support WYSIWYG editors this is the correct way to display the description:
<?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getDescription(), 'description') ?>
[/UPDATE]
but Magento does not load all the attributes on the product listing page. Go to the admin pannel Catalod->Attributes-> Manage Attributes and edit the description attribute. Set "Used in product listing" to "Yes". Save and clear the cache.