Jump to content
Sign in to follow this  

Category Description

Recommended Posts

I just installed the Category Description contrib and it works perfectly. However, I would also like to add the description below the category links in the Category box. I have no knowledge of PHP but I tried duplicating how the code works from catalog/index.php (where it displays Page heading and Category description on the category listing page) into boxes/categories.php but it didnt work. Seems like a reasonable solution, what am I missing?


		$category_query = tep_db_query("select cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);

$categories_string .= '<br>' . $category['categories_description'] . '<br>';


That's what I have so far in boxes/categories.php. The additions were made around line 57. Any help would be appreciated! Thanks!



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this