LearnWebDesignOnline.com is proudly hosted by Hostmonster.com

Continuing from the last tutorial, we now will change the "Home" menu to say "Product".

As demonstrated in last tutorial, the file we are looking at is ...
includes/templates/template_default/common/tpl_header.php
The text for the "Home" menu is produced by the highlighted PHP code.

The code is displaying the contents of the defined PHP constant HEADER_TITLE_CATALOG.
We can take the easy way and change the code to be ...

However, we are not going to do that.
The best practice is to change the constant definition instead. To do this, we have to determine where the HEADER_TITLE_CATALOG constant is defined. We can perform the same "search entire site" technique as described in last tutorial.
Or you can use "Tools -> Developer Tool Kit" in the ZenCart admin panel and click "Search" ...

It will show you the file in which the constant is defined...

The constant definition is found in
includes/languages/english/header.php
But if you are using the template override system, you need to change ...
includes/languages/english/example/header.php
instead -- where "example" is the name of your template.
We changed the highlighted text from "Home" to "Product"

and upload to server. Now we got ...

Language Files
From looking at constant definition file and noticing that the file is within the "languages" folder, you can surmise that all English text are placed in "constant definition files" instead of placing the text within the PHP code. The reason for this is for "internationalization". ZenCart is built to be used for other languages such as French. If someone wanted to build a French site, they can simply change all the text in the constant definition files (or "language files") instead of having to go changing the text scattered throughout the PHP code.