Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer logon date


al3ks

Recommended Posts

Hi

 

Is it possible to change the date format for customer last logon, so that it shows full date with accurate time?

 

For example instead of:

30/07/2012

 

To show like this:

30/07/2012, 21:28:45

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

Be nice to go a step further, have a new column added so that along side their last name, first name, and date the account created, you would have the last logon date (and time) and be able to sort through them that way.

Link to comment
Share on other sites

@@DunWeb

 

The customers area with list of all registered accounts.

 

/admin/customers.php

 

Find:

 


	$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' '  . tep_date_short($cInfo->date_last_logon));

 

Change to

 


	$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_LAST_LOGON . ' '  . date("d/m/Y G:i:s", strtotime( $cInfo->date_last_logon ) ));

 

Sorry for the way the forum mucks it up...

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...