Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page Title: How do I chnage it?


ardley216

Recommended Posts

At the top of your browser there is a page title of your webpage... if you visit www.gadget-net.com (my website) it will say "gaget-net.com" throughout my website, now what i want to do is find a contribrution to automatically chnage this to the title ont he current page, for example if i click on digital cameras.. i want the page title at the top to be "digital Cameras" and so on witht he products..

 

it would be fantastic if someone would point me in the right direction.. and before anyone asks.. i have searched forum and contributions.

 

thanks guys! :)

Ardley

Store:Gadget-Net

Link to comment
Share on other sites

ok i found a contribution to add a page title.. but when i put it in it doesn't work... here are the instructions:

 

Product description in title bar

This adds the product title to the heading of the web page.  This is most useful when a customer bookmarks a product on your site.  It automatically titles the bookmark with your store name and the product title.


In product_info.php line 24,

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

with:
<?php $product_title_query = tep_db_query("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_title = tep_db_fetch_array($product_title_query); ?><title><?php echo STORE_NAME . ' - ' . $product_title['products_name']; ?></title>

 

when i add the code it won't show up in the page title.. i have added dynamic meta tag to my website and i had to delete this from the code... i don't know but does this make a difference?

Ardley

Store:Gadget-Net

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...