pimms Posted November 29, 2006 Posted November 29, 2006 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
bill110 Posted November 29, 2006 Posted November 29, 2006 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
pimms Posted November 30, 2006 Author Posted November 30, 2006 Thanks Bill, I'll give it a try right away. Rob :)
pimms Posted November 30, 2006 Author Posted November 30, 2006 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
bill110 Posted November 30, 2006 Posted November 30, 2006 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
pimms Posted December 1, 2006 Author Posted December 1, 2006 thanks Bill, I'll give it a go. Just struggling with the STS at moment. For some reason it hasn't loaded properly. www.saulsaddlery.com/store What do you think ? Rob
Recommended Posts
Archived
This topic is now archived and is closed to further replies.