Try this (tested on 4.2):
Open include/search.php.
FIND:
Code:
$fields[] = "$sql_tbl[products].*";
AFTER ADD:
Code:
// WCM - Query Category
$fields[] = "$sql_tbl[categories].category";
// / WCM - Query Category
Open
4.1: skin1/customer/main/products.tpl and/or skin1/customer/main/products_t.tpl
4.2: skin1/customer/main/products_list.tpl and/or skin1/customer/main/products_t.tpl
FIND (this will differ slightly on 4.1.x as it will specify a product.php url with a different class. Basically put the new code where you want the category to be displayed.):
Code:
<a href="{$url}" class="product-title">{$product.product|escape}</a>
Code:
{if $product.category ne ""}<br />{$lng.lbl_category}: {$product.category}{/if}
Also make sure the 'lbl_category' language variable exists.