Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product info in title bar


Guest

Recommended Posts

Hi I've searched high and low in the forums and contributions but I don't seem to be able to find the answer to this question.. what I'd like to do is put the title of the product on the product info page into the title bar. Can anyone help with this? :?:

Link to comment
Share on other sites

before you try back up your files!

 

Open catalog/product_info.php and after

 

  require('includes/application_top.php');

 

place this code

 

    $product_info_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 . "'");

   $product_info_title = tep_db_fetch_array($product_info_title_query);

 

and then replace

 

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

 

with

 

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

 

Hopefully that should work, good luck and back up!!! :D

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...