Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parent catagory showing on title heading


Guest

Recommended Posts

Hi Everyone,

 

 

What I want to do is to replace the text that says "catagories" with the parent catagory title in the centre field.

 

For example if the customer goes into my catagory fishing reels the manufacturers are displayed and the title says "reels" so they know where they are.

 

Is there a way of doing this without affecting the subcatagories on the left?

 

 

Regards

 

Carl

Link to comment
Share on other sites

For the breadcrumb this will help

http://www.oscommerce.com/community/contri...mbTrailItemv1.2

 

for the "let's see what we have here" text

This from a contribution. Not sure the name of it.

Get rid of "Let's See What We Have Here" for SubCategories and "Categories" for Top-Categories. Replace them with the name of categories or Subcategories name.

In the /catalog/index.php, there are three <?php echo HEADING_TITLE; ?>

FOR CATEGORIES, just replace the first one
<?php echo HEADING_TITLE; ?>

TO 

<?php echo $category['categories_name'] ?> 


FOR SUBCATEGORIES, just replace the second
<?php echo HEADING_TITLE; ?>

TO

<?php if (isset($HTTP_GET_VARS['manufacturers_id'])) {  
	$category_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
	$category = tep_db_fetch_array($category_query);
	if ($category['manufacturers_name'] != "") {echo $category['manufacturers_name'];} else { echo HEADING_TITLE;}
  } else { 
	$category_query = tep_db_query("select cd.categories_name 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);
	if ($category['categories_name'] != "") {echo $category['categories_name'];} else { echo HEADING_TITLE;}
  }
?>


The third <?php echo HEADING_TITLE; ?>
Nothing needed to modify.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

For the actual Title of the page you will need something like the Header Tags Controller contribution.

or Custom META Tags per Item

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...