Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing top name


greg8160

Recommended Posts

How can I change the name that says top>> and catalog? top takes me to my home page and I would like to change top to Home Page. also how can I make links to other web sites in the left box? thank you in advance.

Link to comment
Share on other sites

How can I change the name that says top>> and catalog? top takes me to my home page and I would like to change top to Home Page. also how can I make links to other web sites in the left box? thank you in advance.

 

The words Top and Catalog are defined in catalog\includes\languages\english.php. There you can change them to whatever you like.

Link to comment
Share on other sites

I would like to change top to Home Page

/catalog/includes/languages/english.php

 

Change:

 

define('HEADER_TITLE_TOP', 'Top');

to

 

define('HEADER_TITLE_TOP', 'Home Page');

 

how can I make links to other web sites in the left box?

Just use regular HTML.

 

There are contribs. for that probably.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Thank you very much that helped, now understanding how to change the main page to what I would like :blink: It seems like i almost need php programming exp. to figure this one out. I understand its telling me to go and edit this Editing Page Texts

 

The text shown here can be modified in the following file, on each language basis:

 

[path to catalog]/includes/languages/english/index.php

 

That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules.

 

The text is set in the following manner:

 

define('TEXT_MAIN', 'This is a default setup of the osCommerce project..

 

but if I change to much it destroys things does't it?

Link to comment
Share on other sites

define('TEXT_MAIN', 'This is a default setup of the osCommerce project..

 

but if I change to much it destroys things doesn't it?

 

nope. you can change that to your heart's content. you just have to be careful in your use of single quotes.

 

in php a string is defined as everything between either quotes or single quotes. so if you start a string with a single quote (as in this example), the next single quote ends the string. therefore, if you want your string to contain a single quote (often used in contractions!) then you have to "escape it".

 

for example:

define('TEXT_MAIN', 'The use of single quotes isn\'t impossible');

 

notice the \ escape before the single quote character in the word "isn't"? if you don't escape it this way, php thinks the single quote before the t in "isn't" is the end of the string, and then it doesn't know what to do with the stuff after the string. escaping a quote in a quoted string is the same thing: "the use of \"quotes\" isn't impossible either."

 

you'll get the hang of it. everyone has to through learning this stuff.

 

there's more on escaping in the tips and tricks forum area, which i would suggest you read up on if you're new to osc. there's a lot of good stuff in there for beginners and it will save you a lot of frustration.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...