Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change "categories" heading above product page to category name


nigelt74

Recommended Posts

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

 

easy to give a demo

 

http://nigel.geek.nz/oscommerce/index.php?cPath=1

 

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

Hi,

 

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

 

<!-- body_text //-->
<?php
 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">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>

<td class="pageHeading">

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

</td>

 

 

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

 

Kati

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...