This recipe displays the parent category along with the product name in product listing. This module is important if your customers find your products using the search function in most cases, and you want them to see the category of each product at a glance.
Your screen will look like the following screenshot, with the parent category added to each product name, and separated by a dash:
You can easily hack this recipe to present category name first as shown in the variation later.
Are you ready to carve the roast?
function tep_get_category_name($product_id) { global $languages_id; $category_query = tep_db_query("select cd.categories_name from " ...