Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to display product detail description on product listing page?

I want to show a detailed product description after a short description on the product listing page.

I'm doing this

<?
echo $_product->getDescription();
?>

but nothing shows up.

I also tried this

Mage::getModel('catalog/product')->load($_product->getProductId())->getDescription();

but to no success.

like image 952
kharonayee Avatar asked May 17 '11 07:05

kharonayee


People also ask

Where can I see the product description?

They can be located right next to or underneath product titles and product images. They can be scannable selling points or have strong readability. There are multiple styles and ways to make product descriptions work for your ecommerce store, but there's much more to them than simple copywriting.


2 Answers

Try setting product attribute for descrption field "Used in Product Listing" to "YES". That will solve your problem and avoid redundant model load

like image 120
Sergey Avatar answered Dec 15 '22 00:12

Sergey


The correct code is:

<?php

$my_product = Mage::getModel('catalog/product')->load($_product->getId());

echo $my_product->getDescription();

?>
like image 31
Fabrizio D'Ammassa Avatar answered Dec 14 '22 22:12

Fabrizio D'Ammassa