Community Add-Ons
| Maintainers: | undrline |
HEAD_TITLE is Category
for osCommerce Online Merchant v2.2
The default is "Let's See What We Have Here." or somesuch, and "Categories." The first being for a Product Listing, and the later being a generic for any category. The first sounds like a question, and the second might be confusing to a customer if they *didn't know* that they were delving in a category of products (eg Search).
This replaces the gray text with the name of the Category everywhere in your Catalog but the home page. (I think the home page still defaults to your store name; I got rid of it on my home pages.)
<title>
<?php
$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);
If ($products_name == '' && $category['categories_name'] == '')
echo 'INSERT YOUR SEO KEYWORDS OR SHOP NAME, etc';
else
{
If ($products_name == '')
echo $category['categories_name'];
else
echo $products_name.' - '.$category['categories_name'];
}
?>
</title>
