Community Add-Ons

Maintainers: undrline
Add file to this package
Top » Templates and Themes

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

Legend:  Download   Report
Expand All / Collapse All
Easy TITLE saimons 4 Mar 2007  

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

minor bug fix ericfrancis 5 Jan 2007  
HEAD_TITLE is Category undrline 19 Jan 2006