onsdag 21 maj 2008

Byt ut "Look what we have here" mot kategorinamnet

I catalog/indx.php ca rad 234:

Sök:

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

Ersätt med:

<? //DML define category ID for page header

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$name_prod_qry = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

$name_prod_list = tep_db_fetch_array($name_prod_qry);

$name_prod_list = $name_prod_list['manufacturers_name'];

} elseif ($current_category_id) {

$name_prod_qry = tep_db_query("select categories_name FROM " .TABLE_CATEGORIES_DESCRIPTION. " where categories_id = '" . (int)$current_category_id . "'");

$name_prod_list = tep_db_fetch_array($name_prod_qry);

$name_prod_list = $name_prod_list['categories_name'];

}

?>


<td class="pageHeading"><?php echo $name_prod_list; ?></td>

<!--//end category ID for pageheader -->

Inga kommentarer: