I would be cautious about adding modules relating to UK-specific behaviour until you have gotten your basic UK set-up in order. This is chiefly your setting up of zones and UK Vat. Language file changes are less important (so, for example, having the word "check" appear instead of "cheque" may irritate some customers a bit, but it's not critical). Anyway, simple DEFINES like this are easy to change in your english.php file.
Talking of english.php, there is some advantage in having your date formatting set to UK protocols. In the USA, they like the date to be MONTH/DAY/YEAR. This can confuse UK customers, who like DAY/MONTH/YEAR.
To make this change, ftp the following file to your hard drive: -
includes/languages/english.php
Then, using an editor (such as CRIMSON EDITOR), open up the file and find the following code:-
PHP Code:
@setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}
}
Then, edit it to look like this:-
PHP Code:
@setlocale(LC_TIME, 'en_UK.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format dd/mm/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}
}
NB: make sure you get the numerical changes right in these sequences too!
return substr($date, X, Y)
Then, using Crimson's "FIND" function (drop-down menu), search for "date", and for "mm/dd/yyyy" in the rest of english.php
This will help you find locations for references to mm/dd that now need to be changed to dd/mm
(You don't want to have your date format set to UK, only to have text appearing in your webshop saying to customers that the date is formatted mm/dd/yyyy !!!)
While you're busy editing english.php, you may as well look for words like "check" as well, and any other phrases that would look better when viewed by UK customers.
Scroll carefully through the file, making DEFINE element changes as you see fit.
Save the file on your hard drive.
FTP the file to includes/languages/classic
(This assumes you're using a standard upload of zencart and it's "Classic" template).
If it fouls things up, you can revert to the ORIGINAL core english.php by either DELETING the copy in the classic folder, or "disabling" it by re-naming it to something like english_old.txt .
You can then try the edit again, looking for where you made errors.
(NB: If you do have other modules installed that rely on date parameters being set, you will have to also set these parameters to be DD/MM/YYY - I know that easypopulate is one such module, and the settings here are "easy" the date settings can be found in ADMIN>>>CONFIGURATION>>>EASY POPULATE)
Bookmarks