Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

User Registration date

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2006, 05:04 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default User Registration date

Is there anyway of changing it where when you find a customer that has registered but not actually logged in from saying "not logged in" to the original date that they "Registered".
I usually rely on receiving an email saying that someone has applied for membership but our email system sometimes blocks the emails so Im actually left waiting to see if weve had someone apply or whether were just not popular??
I know you can log in and see who has logged in within last month, last week or on the day but it doesnt actually tell you the day?? I could have had several people register but just not know who is who? and whether Ive seen them or not??

Anyone?
__________________
X-Cart Version 4.0.3
Reply With Quote
  #2  
Old 05-16-2006, 07:45 PM
  rubyaryat's Avatar 
rubyaryat rubyaryat is offline
 

eXpert
  
Join Date: Feb 2003
Location: Canada
Posts: 289
 

Default

From your signature you look to be running 4.03 which is an old build of 4.0 branch.
You be better updating to the latest (stable) build (4.018, which fixed and added a number of features.

One of changes will solve your issue.
To fix for 4.03, edit:
include/register.php

look for the comment:
# Auto-log in

around line 436.

Add the line:
db_query("UPDATE $sql_tbl[customers] SET last_login = '".time()."' WHERE login = '$uname'");

after the conditional statement:
if($usertype=="C" or ($usertype=="B" and $login=="")) {

This will update the user's db record with the time they registered.

Rubyaryat
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
Reply With Quote
  #3  
Old 05-17-2006, 12:42 AM
 
dazybabes dazybabes is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 70
 

Default

Well looking at it were actually running on 4.0.12

will your amendments work ok in that version?

I'm a little sceptical about updating to a newer version as I class myself as a little bit of a novice and although I have done some major mods of the site Im not sure where I would start updating?
__________________
X-Cart Version 4.0.3
Reply With Quote
  #4  
Old 05-17-2006, 05:40 AM
  rubyaryat's Avatar 
rubyaryat rubyaryat is offline
 

eXpert
  
Join Date: Feb 2003
Location: Canada
Posts: 289
 

Default

Yes the amendment would work on 4.012.

Upgrading can take quite a bit of work if there have been lots of modifications to the X-Cart codebase.
Different X-Cart coders take different positions about upgrading heavily modified codebases.
Some will review the changelog and just patch what is important for their cart ; others will make sure they are always upto date.

You'll likely have to patch several files manually after applying the upgrade if you cart is heavily modified, and also apply SQL patches as they won't be applied if the upgrade script wasn't able to patch all the files.

Good luck!
Rubyaryat
__________________
Rubymods.com - Your X-Cart services partner for over 9 years.
Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods.
X-Cart Store Hosting, project management and affiliates program available.
4.2.3 gold [Unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:19 AM.

   

 
X-Cart forums © 2001-2020