Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Linking words under HEADER to products ??


pimms

Recommended Posts

Hi,

 

How do you make the writing at the top, under the header, which normally says "WHATS NEW HERE" or "CATEGORIES", say the name of the category (ie group of range of products) you have just clicked on in the Catergories box i.e. DVD'S or HARDWARE, to tie in with the products on display underneath ?. How similarly do you get the same writing to say the name of the manufacturer you have just clicked on it in the drop down box, so it reinforses the logo in the image beside it, rather than saying, "LETS SEE WHAT WE HAVE HERE !

 

any help will be massively appreciated.

 

Rob

Link to comment
Share on other sites

In catelog/index.php find this text

<!-- 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"><?php echo HEADING_TITLE; ?></td>

The very last line change like this:

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

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

Hi Bill,

 

Just change the code. It works fine on the three main categories which now are right over the category boxes. The sub categories and manufactures still say "Lets see what we have here" over the products when they are clicked, so it looks like a bit more needs changing to make these work too.

 

many thanks for the earlier help.

 

Rob

Link to comment
Share on other sites

Try this. same file index.php

find this:

			<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<?php
// optional Product List Filter

change first line to

		<td class="pageHeading"><?php echo $listing_sql['m.manufacturers_name']; ?></td>
<?php
// optional Product List Filter

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