Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

change "categories" heading above product page to category name


Recommended Posts

How to change "categories" heading above product page to the name of the category


easy to give a demo




click on the "hardware" link and you see above the products it says categories (in ugly red text) how do i change this so that it says "Hardware"


All oscommerce stores i have seen seem to show the category name, so i guess it must be an incredibly obvious thing, but well I'm baffled


anyhelp would be greatly appreciated

Link to comment
Share on other sites

  • 1 year later...



The place for changing the heading to be as the same as the current category is in index.php


<!-- body_text //-->
 if ($category_depth == 'nested') {
   $category_query = tep_db_query("select cd.categories_name, 
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);
   <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<td class="pageHeading">

[b]The Place for the right code is here, I think[/b]




Lower categories heading is forward in the code


I haven't found the right code yet. Category's id shows with this <?php echo $current_category_id ?>, but how the name of the category can be shown..?



If anyone knows how the current category can be placed in heading, I would appriciate that information too :)



Kind regards



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...