Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Help with Category Description v1.03 contribution

Recommended Posts

I noticed this in the instructions


(4) catalog\includes\functions\general.php


ADD: (anywhere is ok, bottom of the file for example)


function tep_get_category_description($category_id, $language_id) {

$category_query = tep_db_query("select categories_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $category_id . "' and language_id = '" . $language_id . "'");

$category = tep_db_fetch_array($category_query);

return $category['categories_description'];



Then I noticed this on the contribution page, noted in the version you installed


Fixed the description of the general.php file (was the general file in catalog not in admin as it should be)


Backup first, but if you put the code from step 4 in catalog/includes/functions/general.php then take it out and put it in catalog/admin/includes/functions/general.php instead.


Let me know if it worked :)


BACKUP :thumbsup: BACKUP :thumbsup: BACKUP :thumbsup:



I have installed the Category Description v1.03 contribution, but am getting the folling error when I try to edit categories in the admin section:

"Fatal error: Call to undefined function: tep_get_category_description() in /home/to/public_html/admin/categories.php on line 947"


What have I done wrong?

Edited by choosealogin
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.

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...