File location....

coffman <[email protected]> 1 Sep 2003 19:36:54 -0000
Newsgroups gmane.comp.web.oscommerce.suggestions
Message-ID <dcd5aa3daf3880408dd6196c55aa52dc@osCommerce-Forums>
This message was sent from: Suggestions and Proposals
http://forums.oscommerce.com/viewtopic.php?p=222858#222858
----------------------------------------------------------------

[quote="hazer1"]OK I give where is the productinfo.php page?  Did several searches on my HD copy and also on my server no luck.

[quote="benjaim77"]Add this code snippet to your porductsinfo.php page

<?php
$title_query = tep_db_query("select  pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
    $prod_title = tep_db_fetch_array($title_query);
  $newtitle = $prod_title['products_name'];
?>

then set your title tag to this

<title><?php echo $newtitle; ?></title>

now your products name will appear in the title tag of your page

I'll post more later, I am in the midst of settign one of these carts up, and it has to be 100% search engine friendly[/quote][/quote]


I believe instead of porductsinfo.php, the intended filename is product_info.php.  Should be at the root of your stores tree..