From what I can see, it doesn’t look like the Result.php block loads the short description in the _getProductCollection function. The getShortDescription will work, but you just need to tell the block to load that info so that you can call it. Open up app->core->Mage->CatalogSearch->Block->Result.php. You should see the following function:
protected function _getProductCollection() { if (is_null($this->_productCollection)) { $this->_productCollection = $this->_getQuery()->getResultCollection() ->addAttributeToSelect('url_key') ->addAttributeToSelect('name') ->addAttributeToSelect('price') ->addAttributeToSelect('special_price') ->addAttributeToSelect('special_from_date') ->addAttributeToSelect('special_to_date') ->addAttributeToSelect('description') ->addAttributeToSelect('image') ->addAttributeToSelect('small_image') ->addAttributeToSelect('tax_class_id');
As you can see, the short_description is not part of the select query. You can change ->addAttributeToSelect(’description’) to ->addAttributeToSelect(’short_description’), or you can add ->addAttributeTo Select(’short_description’) entirely. Of course, proper conventions would say that you should ammend the function via the local code pool as to preserve the integrity of your changes across future upgrades, but this’ll give you an idea as to how to get the short_description to show up. Hope that helps.
thanks for that, nice one. i guess i will change this function then. however hope that in the future this field will be added in the core, don’t see a point why not?
I know this is an old thread, but I\\\’m having a similar issue. Could be somewhere in the core, but
have a customized product display page, grid with three columns, short description (actually the first bit of the description), and a custom \\\’details and customize\\\’ link.
HOWEVER,
on our search results page it is slightly different, no description and has an \\\’add to cart\\\’ link as opposed to what is on the category pages.
It looks as if the /list.phtml is powering everything, and all use the getProductListHtml call for the products.