I'm attempting to add this contrib on top of the Header Tags V2.4.7.
HTC replaced the line in 8.2 "<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>" with "<td><h1><?php echo $category['category_head_title_tag']; ?></h1></td>" How do I add the following lines without breaking the header tags title?
<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>
Another conflict is the header tags contrib adding 5 lines below "case 'PRODUCT_LIST_PRICE':"
$category_query = tep_db_query("select c.category_head_title_tag 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);
while the category description needs
// Get the category name and description
$category_query = tep_db_query("select cd.categories_name, cd.categories_heading_title, cd.categories_description, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'");
$category = tep_db_fetch_array($category_query);
Instruction 8.5 also conflicts as it modifies "<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>" which was changed to "<td><h1><?php echo $category['category_head_title_tag']; ?></h1></td>" from the header tag contrib.
Unfortunately, I'm not a php wizard, so I really don't understand the changes being made, and how to work around them. Is it possible to get both contribs to work together? Has someone already done this and could post their index.php files so we can capture the differences? I know I'm not supposed to cross-post, but can I put a link to this on the header tags controller contrib discussion at http://www.oscommerce.com/forums/index.php?showtopic=51815? To my non-coder eye, it seems like the conflicts happen where the contribs set the page titles. Can I modify it so I can display the page headings from the HTC and still show category descriptions?
Thanks for any help!
Andris