theconversionplace Posted August 15, 2006 Share Posted August 15, 2006 Having a few problems converting my store from a US to a UK format, even though i've changed all location sttings to UK. This is mainly changing addresses from Format 2 to Format 1 aswell as changing check to cheque. Any help would be great. Thanks in advance Paul @theconversionplace.co.uk. Link to comment Share on other sites More sharing options...
Guest Posted August 15, 2006 Share Posted August 15, 2006 Having a few problems converting my store from a US to a UK format, even though i've changed all location sttings to UK. This is mainly changing addresses from Format 2 to Format 1 aswell as changing check to cheque. Any help would be great. Thanks in advance Paul @theconversionplace.co.uk. in english.php insert this over orginal code 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 strftime() 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); } } Link to comment Share on other sites More sharing options...
spax Posted August 15, 2006 Share Posted August 15, 2006 If you haven't added anything to your store yet, you could grab the UK Based osCommerce 2.2, contribution. Link to comment Share on other sites More sharing options...
jhsands Posted August 15, 2006 Share Posted August 15, 2006 BACKUP your current files before editing. Did I mention to BACKUP your current files, first? Change date format from English to International http://www.oscommerce.com/forums/index.php?sho...id=914459 Change this in includes/languages/english.php 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 function tep_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); } } to this (you can copy it from german.php, also) 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 strftime() 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); } } BACKUP your current files before editing. Did I mention to BACKUP your current files, first? "I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!" Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password Link to comment Share on other sites More sharing options...
theconversionplace Posted August 16, 2006 Author Share Posted August 16, 2006 If you haven't added anything to your store yet, you could grab the UK Based osCommerce 2.2, contribution. Great stuff, how do i add it? Link to comment Share on other sites More sharing options...
spax Posted August 16, 2006 Share Posted August 16, 2006 Great stuff, how do i add it? If you haven't already sussed it out - navigate through the contribution directories, uploading the files to the corresponding directories, of your store. You would be advised to, temporarily, change the names of the files you are about to replace. That way, should something break when you upload the new files, you only need to change their names back again, to recover it. i.e. Before you upload [contribution] catalog/includes/modules/address_book_details.php Rename [your store] catalog/includes/modules/original_address_book_details.php If everything works ok, just delete the original, renamed the files. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.