Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Convert your store to be UK based

Converting the date and time for your store

Open catalog/includes/languages/english.php and change the code to this.

@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 mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_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);
}
}  

You will also need to change the following in the same file:

define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)');

to:

define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: DD/MM/YYYY (eg 21/05/1970)');

Change:

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

to:

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 21/05/1970)');

Change:

define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

to:

define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

Converting the date and time for your admin panel

This is very similar to the catalog changes above but it is not identical.

Open catalog/admin/includes/languages/english.php and change the code to this.

@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('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // 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
function tep_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);
}
}  

Change:

define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

to:

define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

Changing the address format

  • You will need to use myPhpAdmin (or similar) to open your database and edit the address_format table.
  • Click Insert when you have selected the table and then …

Set the address_format to:

$firstname $lastname$cr$streets$cr$city$cr$postcode$cr$country

and the address_summary to:

UK Address Structure
  1. Now you need to go to your admin section and open Locations & Taxes menu
  2. Click Countries
  3. Find the United Kingdom
  4. Click Edit
  5. Set the Address Format to match the row you just created using myPhpAdmin (eg. 6)

Changing the address field names

Again open catalog/includes/languages/english.php and change:

define('ENTRY_STREET_ADDRESS', 'Street Address:');

to:

define('ENTRY_STREET_ADDRESS', 'Address Line 1:');

Change:

define('ENTRY_STREET_ADDRESS_ERROR', 'Your Street Address must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.');

to:

define('ENTRY_STREET_ADDRESS_ERROR', 'Your Address Line 1 must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.');

Change:

define('ENTRY_SUBURB', 'Suburb:');

to:

define('ENTRY_SUBURB', 'Address Line 2:');

Change:

define('ENTRY_STATE', 'State/Province:');

to:

define('ENTRY_STATE', 'County/State:');

You can use just County instead of County/State if you don't intend to sell internationally

Change:

define('ENTRY_STATE_ERROR', 'Your State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.');

to:

define('ENTRY_STATE_ERROR', 'Your County/State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.');

Change:

define('ENTRY_STATE_ERROR_SELECT', 'Please select a State from the States pull down menu.');

to:

define('ENTRY_STATE_ERROR_SELECT', 'Please select a county/state from the County/State pull down menu.');

Change your default language currency to GBP + Others

Source: RidexBuilder, osCMax forums

  • Edit the following in catalog/includes/languages/english.php:

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) 
define('LANGUAGE_CURRENCY', 'GBP'); 
 
// charset for web pages and emails 
define('CHARSET', 'utf-8'); 

  • and further down the same file …

// LINE ADDED: Country-State Selector 
define ('DEFAULT_COUNTRY', '222'); 

  • Bookmark at
  • Bookmark "Convert your store to be UK based" at Digg
  • Bookmark "Convert your store to be UK based" at Furl
  • Bookmark "Convert your store to be UK based" at Reddit
  • Bookmark "Convert your store to be UK based" at Google
  • Bookmark "Convert your store to be UK based" at StumbleUpon
  • Bookmark "Convert your store to be UK based" at Technorati
  • Bookmark "Convert your store to be UK based" at Facebook
  • Bookmark "Convert your store to be UK based" at Twitter
  • Bookmark "Convert your store to be UK based" at Slashdot
uk_store.txt · Last modified: 2010/05/11 02:28 by ejsolutions
You are here: startuk_store
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0