2

Am show all products to home page,its working fine.But its showing product price,image only now want to show product description also in home page how to show product description at home page?

<?php $_description = $_product->getProduct()->getDescription(); ?>

Not working the above code i put ,

app/design/frontend/rwd/default/temaplate/catalog/product/list.phtml
kavi ck
  • 117
  • 1
  • 10
  • If you don't see an error message, you should check that your development environment is set-up properly. If you see an error message, add it to the question. Also when you have code that is "not working" you should write what you expected the code to do and what it did instead so that it becomes more clear what "not working" means to you. – hakre Dec 22 '15 at 16:56

2 Answers2

2

This should give you description of product

$_product->getData('short_description')

or

$_product->getShortDescription()
hakre
  • 193,403
  • 52
  • 435
  • 836
Suman KC
  • 3,478
  • 4
  • 30
  • 42
1

$_product is an instance of Mage_Catalog_Model_Product so if you want the product description you should call $_product->getDescription() and not $_product->getProduct()->getDescription()

Francesco Casula
  • 26,184
  • 15
  • 132
  • 131
Cristiano Casciotti
  • 1,016
  • 10
  • 21