You aren't being stupid, it's just a little different to get used to at first. Zencart separates all of the CONTENT (text) and all of the TOKENS(text locations within the code). The files that conjoin these two objects reside in
Code:
includes/languages/english/
it just so happens that the maintenance text itself is in the file
Code:
includes/languages/english/down_for_maintenance.php
when you open it up you should see something much like this
Code:
define('NAVBAR_TITLE', 'Down for Maintenance'); define('HEADING_TITLE', 'Down for Maintenance ...');
define('DOWN_FOR_MAINTENANCE_TEXT_INFORMATION', 'The site is currently down for maintenance. Please excuse the dust, and try back later.'); define('TEXT_MAINTENANCE_ON_AT_TIME', 'The Admin / Webmaster has enabled maintenance at : ');
define('TEXT_MAINTENANCE_PERIOD', 'Maintenance period: ');
define('DOWN_FOR_MAINTENANCE_STATUS_TEXT', 'To verify the site status ... Click here:');
?>
This system of definitions is used because it allows zencart to swap out a new language on the fly, by using a different set of files, without having to change the code of how the cart operates. It also conveniently puts all of the "text" that you see on the cart generally in one place.
you are looking at php here, there are three parts to each statement.
Code:
define('A_TOKEN', 'some text');
The function is the define(). 'A_TOKEN' is the object that gets placed in the actual code. and 'some text' is the words that replace 'A_TOKEN' at runtime.
You can modify the text to change what it says. However since you are now working within PHP's environment you have a few little rules and constraints. Any characters that PHP considers special will have to be escaped if you want to print them.
for example, the most common
define('HEADING_TITLE', 'Sorry, You Can\'t Come In, We\'re Down For Maintenance At This Time');
would show up as
"You Can't Come In, We're Down For Maintenance At This Time
since the apostrophe --> ' <-- is a special character you have to tell php to ignore it by preceding it with a backslash --> \ <--.
Another really useful thing about these files is if you want to edit or look at the code around where the text is being displayed you can take those tokens HEADING_TITLE, DOWN_FOR_MAINTENANCE_TEXT_INFORMATION, DOWN_FOR_MAINTENANCE_STATUS_TEXT, etc and do a grep or a full file search(if you use windows, go download wingrep) and it will show you which file that particular token is being used in.
great if you want to edit the HTML surrounding that text as well.
Welcome to zencart btw, David =)
Bookmarks