Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing title etc


kirbyw37

Recommended Posts

Posted

I am totally clueless when it comes to PHP. I am fairly fluent in HTML though.

My wife is starting up new store; thislldogifts.biz and I need to make some changes that I know how to do in HTML but not in PHP.

I want to change the <title> but cannot find where to do it.

Also I want to add some META tag lines and cannot find where to do that.

And I want to add favicon.ico and don't know where to put the info.

 

Please help me with this.

 

Thank you

Kirby

Please email answers to

[email protected].

Posted

You don't really need to know php to any of those but you do need to know the layout of the files, which will come in time.

 

- You can change the title by editing the includes/languages/english.php file.

 

- For meta tags, you need to install one of the meta tags contributions, like Header Tags. You can't just add meta tags to the files like you do with html sites since the pages are dynamic. The product page, for example, consitsts of one file but it can display thousands of products as if they are separate pages. You wouldn't want the same meta tag information on each of those pages, thus the need for the contribution.

 

- Add the code for the favicon as you normally would to any of the pages you want it to display in.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
You don't really need to know php to any of those but you do need to know the layout of the files, which will come in time.

 

- You can change the title by editing the includes/languages/english.php file.

 

- For meta tags, you need to install one of the meta tags contributions, like Header Tags. You can't just add meta tags to the files like you do with html sites since the pages are dynamic. The product page, for example, consitsts of one file but it can display thousands of products as if they are separate pages. You wouldn't want the same meta tag information on each of those pages, thus the need for the contribution.

 

- Add the code for the favicon as you normally would to any of the pages you want it to display in.

 

Jack

 

OK, a bit of confusion exists here. Wife is following the osCommerce instrution file and has been doing her changes in includes/languages/english/index.php.

Is she working in the wrong place? The changes she makes in this file show up properly on the page.

As you can tell, PHP isn't the only thing I/we are ignorant of.

 

Kirby

[email protected]

Posted
OK, a bit of confusion exists here. Wife is following the osCommerce instrution file and has been doing her changes in includes/languages/english/index.php.

Is she working in the wrong place? The changes she makes in this file show up properly on the page.

As you can tell, PHP isn't the only thing I/we are ignorant of.

 

Kirby

[email protected]

 

Different defines are going to be found in different language files. For the index page you are using the correct file for the title you are going to need a different file includes/languages/english.php file If you want to change your shipping page you will need to edit yet another file includes/languages/shipping.php

 

To change the title look for the following

 

// page title

define('TITLE', 'osCommerce');

 

Change the osCommerce to what you want to use for your title.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted
You don't really need to know php to any of those but you do need to know the layout of the files, which will come in time.

 

- You can change the title by editing the includes/languages/english.php file.

 

- For meta tags, you need to install one of the meta tags contributions, like Header Tags. You can't just add meta tags to the files like you do with html sites since the pages are dynamic. The product page, for example, consitsts of one file but it can display thousands of products as if they are separate pages. You wouldn't want the same meta tag information on each of those pages, thus the need for the contribution.

 

- Add the code for the favicon as you normally would to any of the pages you want it to display in.

 

Jack

 

Jack

 

I also know HTML but this is my first attempt with php. I am also trying to locate where I can edit the title for my web site that has over 100 pages. As you suggested to Kirby, I looked in my web site file - includes/languages/english.php - but the only reference I can find to my title is shown below.

 

// page title

define('TITLE', STORE_NAME);

 

I would like the title to be:

Stamp collection for sale by private collector, not dealer. Shipping worldwide. Home - stamps, stamp collecting, philatelic, philatelics, philately, philatelist, postal stamps, commemoratives, mint, unused, never hinged - Home Page

 

I want to change the title in one place and have the title the same in all of the additional pages.

 

Is there anyplace else that you might suggest?

 

Thanks in advance!

 

Larry from USA

Thank you in advance!

 

Larry from Los Angeles, California, USA

Posted

Are you really wanting all that in the title? Or are you wanting keywords and description tags as well. Several contributions will do this for you and tell you which files to edit. Header tags Meta tags on the fly, meta tags for novice, all do things a little differently to accomplish what you want.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
Are you really wanting all that in the title? Or are you wanting keywords and description tags as well. Several contributions will do this for you and tell you which files to edit. Header tags Meta tags on the fly, meta tags for novice, all do things a little differently to accomplish what you want.

 

Yes, I would really like to have all of what I indicated in the "Title".

Thank you in advance!

 

Larry from Los Angeles, California, USA

Posted

Ok then in catalog/includes/languages/english.php find this

define('TITLE', STORE_NAME);

 

And change to

 

define('TITLE', 'Stamp collection for sale by private collector, not dealer. Shipping worldwide. Home - stamps, stamp collecting, philatelic, philatelics, philately, philatelist, postal stamps, commemoratives, mint, unused, never hinged - Home Page');

 

That will place it in the title meta tag in the head section of the html

Is that what you are refering to?

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
Yes, I would really like to have all of what I indicated in the "Title".
It won't do you any good. Google cuts the title off at around 60-80 characters while yahoo might go another 20 so the title will be truncated by them.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
Ok then in catalog/includes/languages/english.php find this

define('TITLE', STORE_NAME);

 

And change to

 

define('TITLE', 'Stamp collection for sale by private collector, not dealer. Shipping worldwide. Home - stamps, stamp collecting, philatelic, philatelics, philately, philatelist, postal stamps, commemoratives, mint, unused, never hinged - Home Page');

 

That will place it in the title meta tag in the head section of the html

Is that what you are refering to?

 

Thank you for your prompt response.

 

I do not have the catalog/includes/languages/english.php, but I do have a includes/languages/english.php with define('TITLE', STORE_NAME);

 

Is this where you suggest placing the coding?

 

Will what you have suggested, place the title on everyone of our 100 (+ or -) pages with the exact same text?

 

Is there any method that can be used to allow the word "Home" and the phrase "Home Page" to be changed to identify the page that is being viewed. For example "Payment" or "Payment Page", "Shipping" or "Shipping Page", "Newspaper" or "Newspaper Page"?

Thank you in advance!

 

Larry from Los Angeles, California, USA

Archived

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

×
×
  • Create New...