warrenerjm Posted March 7, 2006 Posted March 7, 2006 Hi I amended the following(Display catagory name), as per OSC Knowledge base & now can't access my admin. It says "the page cannot be displayed" Please could someone tell me what I have done wrong & how I can fix it. I am desperately trying to do this myself & struggling! In catalog/includes/functions/general.php add this code at the bottom of the page before the ?> tag: //// // TABLES: categories_description function tep_get_categories_name($who_am_i) { global $languages_id; $the_categories_name_query= tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id= '" . $who_am_i . "' and language_id= '" . $languages_id . "'"); $the_categories_name = tep_db_fetch_array($the_categories_name_query); return $the_categories_name['categories_name']; } You will still see the text "Categories" so you can remove just the text in catalog/includes/languages/english/index.php define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('HEADING_TITLE', 'Categories'); To: define('HEADING_TITLE', ''); define('HEADING_TITLE', ''); This code change will make each category have the heading name of that category and each sub-category under a category have the same heading name as the category it is under. If you want each sub-category to show it's own name the catalog/index.php code needs to change from: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> To: <td class="pageHeading"><?php echo HEADING_TITLE . ' ' . tep_get_categories_name($current_category_id); ?></td> I don't know how to correct this if I can't even access me admin? Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.