westkoast Posted May 20, 2003 Share Posted May 20, 2003 When you click on a category in the left categories nav, the page title diaplays "Categories" Does anyone know how I can change this to display the name of the category the user is in...ie. "Hardware" or what ever category they are in... I need to read the rules more often... Link to comment Share on other sites More sharing options...
Aspen_AGB Posted May 20, 2003 Share Posted May 20, 2003 I'd also like to figure this out... anyone? Link to comment Share on other sites More sharing options...
Rumble Posted July 11, 2003 Share Posted July 11, 2003 this requires some editing of the default.php file. Back up this file before proceeding!!!! Find all occurences of; <td class="pageHeading" align="right"><?php echo HEADING_TITLE; ?></td> ....and change with..... <td class="pageHeading" align="right"> <?php $cats_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $cats = tep_db_fetch_array($cats_query); echo $cats['categories_name']; ?> </td> This should show the category name in the listing rather than 'Categories' Let me know how things go and please back up the default.php file before starting!!!!!! Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
vidmaster Posted July 16, 2003 Share Posted July 16, 2003 The change I made was slightly different and will save you the extral sql query when loading category listings. I am by no means a php expert, so I may have missed something. It works great on my site though. In /catalog/includes/languages/[lang_here]/default.php: Find the define for heading_title and change it to define('HEADING_TITLE', ucwords(strtolower($categories['categories_name']))); [/b] Link to comment Share on other sites More sharing options...
shaky Posted July 16, 2003 Share Posted July 16, 2003 Thanks vidmaster works great!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.