Jump to content


Corporate Sponsors


Latest News: (loading..)

trophy

Member Since 17 Feb 2007
Offline Last Active Today, 01:18
-----

Topics I've Started

Change date format add on

19 May 2012, 01:28

I have tried this add on http://addons.oscommerce.com/info/8445
to change my date but for some reason I can not get it to work.
I Have checked and rechecked several times.
Unfortunately there is no contact for the writer.
Any help appreciated.

Whit this instructions you can change the date format from mm/dd/yyyy to dd/mm/yyyy

Open catalog/includes/languages/english.php (this is for your catalog section) [AND the others languages files]

************
Change:
************
  • @setlocale(LC_TIME, 'en_GB.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');

3. // Return date in raw format

4. // $date should be in format mm/dd/yyyy

5. // raw date is in format YYYYMMDD, or DDMMYYYY

6. function tep_date_raw($date, $reverse = false) {

7. if ($reverse) {

8. return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);

9. } else {

10. return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);

11. }

12.}


  • *********************************
    Also change the following
    *********************************

    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)');

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

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

How can I find which ver od OSC I have

16 November 2011, 22:15

Would like to know how I can tell which version of OSC I am running?

HTTP Referer URL

15 November 2011, 04:00

Is there a way I can see what question was asked when a customer does a Google search.
Until recently I could see this by going into who's online, it would be at the bottom and show as
HTTP Referer URL:
When I click onto that a new page would come up showing the Google search question and which sites came up in the search.
This no longer happens is there a way I can see this.
I find it a useful tool to see what is asked and that way I can modify my site to get more hits.
Appreciate any replies.