Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make Heading Title Show Up As Page Title


georgei

Recommended Posts

Instructions state...

 

"Add one line of code to add to each catalog page."

 

INSTRUCTIONS:

 

1) Go to each of your catalog pages one by one.

 

2) Find this line:

 

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

 

 

3) Change it to:

 

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

 

 

Which are the catalog pages mentioned here?

 

thanks

Link to comment
Share on other sites

Instructions state...

 

"Add one line of code to add to each catalog page."

 

INSTRUCTIONS:

 

1) Go to each of your catalog pages one by one.

 

2) Find this line:

 

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

 

 

3) Change it to:

 

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

 

 

Which are the catalog pages mentioned here?

 

thanks

Here is a better solution:

 

 

Get rid of "Let's See What We Have Here" for SubCategories and

"Categories" for Top-Categories. Replace them with the name of categories or Subcategories name.

 

Here is how you do it:

 

Go to the following file:

catalog/index.php

 

In the catalog/index.php, there are three

<?php echo HEADING_TITLE; ?>

 

FOR CATEGORIES, just replace the first one

<?php echo HEADING_TITLE; ?>

 

TO:

 

<?php echo $category['categories_name'] ?>

 

 

FOR SUBCATEGORIES, just replace the second

<?php echo HEADING_TITLE; ?>

 

TO:

 

<?php 
 $category_query1 = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
  $category1 = tep_db_fetch_array($category_query1);

if ($category1['categories_name'] != "") {echo $category1['categories_name'];} else { echo HEADING_TITLE;} 
?>

 

 

The third

<?php echo HEADING_TITLE; ?>

Just leave it the same. Nothing needed to modify.

 

That's all there is to it.

Thanks,

Bill Kellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Which are the catalog pages mentioned here?

 

thanks

 

 

Your directory structure will be something like

 

Catalog <Main folder everything is contained within this folder.

You will have other folders inside here called:

Admin

ext

icons

images

includes

you will also have a lot of php files

 

It is these php files that it relates to. IE:

account.php

account_edit.php

account_history.php

address_book.php

 

Ect Ect

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...