Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

remove category name on the category page


Turbo

Recommended Posts

Posted

hi all,

 

please tell me how i remove the categoryname that always shows up on top before the products

are listed. thanks

 

best regards

Lukas

Posted

I haven't tried this so it may be wrong, but a quick look and commenting out this could be your answer

 

in index.php

 

<td class="pageHeading">

<?php

if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_heading_title'])) ) {

echo $category['categories_heading_title'];

} else {

echo HEADING_TITLE;

}

?>

</td>

Please forgive me if I'm not correct. Make sure you backup first. If it doesn't work overwrite with the original and you'll need to look elsewhere

Posted

hmmm ....thx for your awnser, i'll try that, if someone else knows a solution and is sure about it ....please tell, i don't want to mess anything up :P

Posted

MSP has the right idea, but I would comment out only the portion the calls for the Page Heading in the conditional php code for pages displayed at the category level.

 

Find the code below in your catalog/index.php file (at or about line 57] and either remove or comment out the <php? echo $category['categories_name']?>. OR, if you want to get rid of the small category pic at the top right as well, just delete the entire table row (everything from the <tr> to the </tr>. These changes will only affect the category heading on the category pages, leaving all the other page headings in tact.

 

<?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="500" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="500" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo $category['categories_name']?> </td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

Archived

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

×
×
  • Create New...