osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Is there a way to do this?

This is a discussion on Is there a way to do this? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello. What i am trying to do is, set the browser's title to the name of the item when clicked ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-18-2003, 02:00 PM
New Member
 
Join Date: May 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
atech
Default Is there a way to do this?

Hello.

What i am trying to do is, set the browser's title to the name of the item when clicked on. I would like it to go like this in the browsers title:

mydomain.com - { item number } - { description }

how would i go about doing this. I know you have to edit it in the products_info file

Is this Possible?

Any help would be great!

Thank You!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-10-2003, 11:30 AM
Member
 
Join Date: Nov 2002
Location: Pennsylvania
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
|3ackdraft
Default

Sorry everyone been away for awhile:

Here is your solution:

Works in osCommerce 2.2 MS2, should work in osCommercer 2.2 MS1

locate product_info.php

find:
Code:
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
then paste this right before that line:
Code:
$product_title_page_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id 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_title_page = tep_db_fetch_array($product_title_page_query);

$NewTitle = HTTP_SERVER.' - { '.$product_title_page['products_model'].' } - { '.$product_title_page['products_description'].' }';
Then replace :
Code:
<title><?php echo TITLE; ?></title>
with :
Code:
<title><?php echo $NewTitle; ?></title>
|3ackdraft
__________________
There\'s something about fireman, day and night they are always fireman!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 06:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax