Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category Description


nycreal

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!

 

-alex

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...