SEO Friendly Titles on Product and Index Pages

Here is a simple one step method to add SEO Friendly titles to the product pages, category listing and the main page of OSCommerce.

use for OSCommerce versions: 2.2rc2a and 2.3

To have the product name as the title on the product page, open product_info.php.
Between the head tags find:

<title><?php echo TITLE; ?></title>

change to:

<title><?php echo $product_info['products_name']; ?></title>

That’s it.

To add the category name to the category listings on index.php (main page):

Open index.php

} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message

add just beneath

//pull category info for CAT and SUBCAT, META-INFO
$category_query = tep_db_query("select cd.categories_name 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);
//define title
if (tep_not_null($category['categories_name'])) {
$title = $category['categories_name'] ;
} else {
$title = STORE_NAME.' more text if desired';


Related Posts

10 thoughts on “SEO Friendly Titles on Product and Index Pages

  1. mbt lami shoes

    Good article and right to the point. I am not sure if this is in fact the best place to ask but do you folks have any thoughts on where to hire some professional writers? Thank you πŸ™‚

  2. Local Seo

    fantastic post, very informative. I wonder why the other specialists of this sector don’t notice this. You should continue your writing. I am confident, you have a great readers’ base already!

  3. chiropractor queens

    Hi there to all, for the reason that I am really eager of reading this blog’s post to be updated daily. It carries good information.

  4. seo page ranking

    I really am grateful for all of the grueling work you have done keeping this place available for all of
    us. I really hope this is online for a long while.


    Hey! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done a wonderful job!

  6. seo keyword report

    I really like what you guys are up too. Such clever work
    and coverage! Keep up the wonderful works guys I’ve included you guys to our blogroll.

  7. Trisha

    Hello all, here every one is sharing these experience, so it’s good to read this website, and I used to visit this webpage daily.


Leave a Reply

Your email address will not be published. Required fields are marked *