Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do I change the title for each page for my site


Guest

Recommended Posts

http://guide.oscdox.com/

Use the index and type in title--->

 

 

In /catalog/includes/languages/english.php

 

Find this line and change 'osCommerce' text to whatever you want.

 

// page title define('TITLE', 'osCommerce');

 

 

it is show oscommerce on ever page

 

thanks

Link to comment
Share on other sites

but what if you want the page title to change to the product that you are viewing. This is how my old cart worked on a different system and many search engines would list my pages this way and brought me a lot of business. Any way to do this?

 

heyday

 

www.auctionpals.com

www.phonebillsaver.com

--

 

http://www.auctionpals.com

 

Long Distance as low as 2.9 cents

http://www.phonecow.com

Link to comment
Share on other sites

You might peek at the Header Tag controller and the Admin for it in the contributions.

 

Also, you can try searching for other threads that give various examples of other methods that have been tried.

 

Header Tags Controller sets the META TAGS for each page so that they look nice to the customer and the spiders like the pages better.

Link to comment
Share on other sites

I have the Header tag controller installed Linda, but was wondering how you set the title and tags for the pages that don't have products on them ??

Link to comment
Share on other sites

In the language files are the definitions you want to use.

 

It builds the Meta tags from these definitions based on what page you are on.

 

You can get general or specific on how the pages are built.

 

There are specific definitions if you want them to appear on all pages, or pages without a product.

 

The definitions with the word _ALL is for all pages. The definitions with the word _DEFAULT is the default.php

 

You can make more for pages I may not have included. Just add them to the case statement of the function file so it knows what you want to have on the page.

 

I made several samples so you can see how they work.

Link to comment
Share on other sites

I have changed this text to my store name is english.php but instead it is giving me the web address in the title bar.... I am using loaded.... do I need to do anything else since it has themas?

Angela

Link to comment
Share on other sites

Thanks for the reply Linda. However I'm still unsure how I go about setting the tags and title on the pages that have no products.

 

Where do I set the title for default.php ?? or cotact.php etc ??

Link to comment
Share on other sites

If you look at the file: /includes/header_tags.php

 

This loads for each page and adds the META tags based on one of the case statements.

 

I have several of the pages in their own case statements to show examples of how the META tags from the descriptions can be built.

 

The definitions are in the:

 

/includes/languages/english/header_tags.php and each language directory should have a copy.

 

Each group of definitions is for a specific page, with the exception of the _ALL tags. These are the generic tags to use or add to the more specific tags for a page.

 

Within each set of definitions are 3 definitions which indicate turn them on or off ... 1 or 0

 

The, there are 3 definitions for what to use for that page's set of definitions. These are used in addition to what is defined in the /includes/header_tags.php case statements.

 

I layout several pages with various example types on how to gather together the keywords, description and title.

 

If you go through these pages, you should see where it is getting the information it is using.

 

On pages like product_info.php it pulls additional information from the table if it is not left blank. You can configure this to use just the information you defined for the product or use that plus the _ALL definitions from the language file.

 

If you want to modify what is in the tags further, you can edit the case statements or add additional statements.

Link to comment
Share on other sites

I also have changed the title in english.php and still the actual URL is showing as the title on all of my pages. How can this be fixed? Thanks!!

 

-Richard

-Richard

---------------------------------------------------

Where would I be without the Forums?!?!

Link to comment
Share on other sites

www.gobeyondwireless.com/catalog/

 

I'm not sure if I am using the Header Tags Controller or not...My OSC snapshot was installed on my server for me. Thank you!!!

 

-Richard

-Richard

---------------------------------------------------

Where would I be without the Forums?!?!

Link to comment
Share on other sites

USE OF HEADER TAGS GENERATOR

 

How you want each page to handle the Header Tags is defined in /includes/header_tags.php

 

What definitions you want used with each page is defined in /includes/languages/english/header_tags.php

 

You can modify which pages use what by looking at the samples setup in these two files.

 

Be careful if editing or changing /catalog/includes/header_tags.php and watch for == vs !=

 

NOTE:

HTTA - means Header Tag Title All

HTKA - means Header Tag Keywords All

HTDA - means Header Tag Description All

 

Try looking in those two files and setting the values for the pages there.

 

Make sure you have changed all the pages as defined in the README.TXT if you installed the Header Tags Controller yourself.

 

Make sure that there is something in the new fields to put into the product_info.php META TAGS

 

A quick update for the titles can be set in phpMyAdmin with:

 

UPDATE products_description set PRODUCTS_HEAD_TITLE_TAG = PRODUCTS_NAME

 

If you see on a View Source:

<!-- BOF: Generated Meta Tags -->

 

Then the Header Tags Controller is working fine ... but you have not configured it correctly or have not filled in the new fields with anything so nothing is appearing in the tags.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...