Set up Locality, Date Format and Currency
If you are in U.S. or have installed another language pack the following changes might not be necessary.
This step makes changes to the 2 main language files.
There is a main language file for the Store side and another for the Admin side of the site.
Changes to any language file for the Store side are made to a copy which is saved in a new location in the override template.
This prevents them being overwritten in updates.
Changes to any language file for the Admin side are saved in the original location.
Navigate to the main language file for the Store side in your backup folder/directory - /includes/languages/english.php
Save a copy of this file to /templates/override/includes/languages/english.php.
Create the new folder/directory languages in the /templates/override/includes/ if necessary.
Open this copy to edit.
CE Phoenix Cart is set for U.S. English with USD currency and m/d/y date format by default.
Set Up Locality
Find the following lines:
// 'en_US.UTF-8', 'en_US.UTF8', 'enu_usa' // 'en_GB.UTF-8', 'en_GB.UTF8', 'eng_gb' // 'en_AU.UTF-8', 'en_AU.UTF8', 'ena_au' @setlocale(LC_ALL, ['en_US.UTF-8', 'en_US.UTF8', 'enu_usa']);
Change the code within the square brackets in the last line to one of the options shown above it.
For example, for Great Britain change to
@setlocale(LC_ALL, array('en_GB.UTF-8', 'en_GB.UTF8', 'eng_gb'));
Set the Date Format
Find the following lines:
const DATE_FORMAT_SHORT = '%m/%d/%Y'; // this is used for strftime() const DATE_FORMAT_LONG = '%A %d %B, %Y'; // this is used for strftime() const DATE_FORMAT = 'm/d/Y'; // this is used for date() const DATE_TIME_FORMAT = DATE_FORMAT_SHORT . ' %H:%M:%S';
Change the order of month, day and year to your requirements - see Date Formats Explained
Set the Currency
Find the following line:
const LANGUAGE_CURRENCY = 'USD';
For example, for Great Britain change to:
const LANGUAGE_CURRENCY = 'GBP';
To find your 3 letter currency code, internet search ISO 4217 Codes.
Save the file.
Open the main language file for the Admin side from your backup folder/directory - /youradmin/includes/languages/english.php
Repeat the changes above.
Save the file.
Now, either using the control panel on your server host or using FTP software, upload the files from your local computer to the server.
Create the new folder/directory languages in the /templates/override/includes/ on the server if necessary.
IMPORTANT: Double check that the files are uploaded to the correct locations.
Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org