Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change the titla of each product page


Dark Angel

Recommended Posts

Hi all

 

I have a new website and i would like to change the title of each page on the calalog side so in sted of it saying this MST-DIRECT Bringing You The Best Deals:-.

 

I would like it to say the title of the page so if the page is an xbox page i would like it to say so like XBOX Page

 

Thanks Hopefully Angel :)

Link to comment
Share on other sites

I am not sure if what you want is to have the category title shown or not so I give you this in case.

 

go to catalog/includes/languages/english/index.php and at the bottom make your code this

 

 

  
} elseif ($category_depth == 'nested') {
define('HEADING_TITLE', $categories['categories_name']);

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I don't think she (he?) means the category titles - I think she means the title at the very top of the page, in the browser bar.

 

If that's the case, try looking for the Header tags contrubution - I think that does what you want.

Link to comment
Share on other sites

in your index.php file find the following text:

 

case 'PRODUCT_LIST_IMAGE':

$listing_sql .= "pd.products_name";

break;

case 'PRODUCT_LIST_WEIGHT':

$listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_PRICE':

$listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

}

}

?>

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

 

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

 

 

<?php

// optional Product List Filter

if (PRODUCT_LIST_FILTER > 0) {

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " .

 

TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORI

 

 

see where it says

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

you want to add MST-DIRECT Bringing You The Best Deals:-

 

in the includes/languages/english/index.php file where you see:

 

define('HEADING_TITLE'

Your online success is Paramount.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...