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

Customer name in login message

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2006, 08:16 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Customer name in login message

In the authbox after a customer logs in it says "username is logged in!" - How can that be changed to list the customer's first and last name instead of the username?

V 4.1.3

Thanks!
__________________
~ Andrea Beight
Reply With Quote
  #2  
Old 10-24-2006, 12:32 PM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: Customer name in login message

In authbox.tpl
Replace:
Code:
{$login}
with:
Code:
{$userinfo.firstname} {$userinfo.lastname}
should do it!

Hey Andrea!
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
  #3  
Old 10-24-2006, 01:12 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: Customer name in login message

Thanks - I found that code from the registration template and inserted it, but the name only shows on certain pages like the modify profile page, but not all pages.
__________________
~ Andrea Beight
Reply With Quote
  #4  
Old 10-25-2006, 06:00 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: Customer name in login message

Must be a 4.1.3 thing, works fine in 4.0.17!
Post the authbox.tpl code, and a link to the site (if you can) when you get a chance.
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
  #5  
Old 10-25-2006, 06:28 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Customer name in login message

check_useraccount.php

add

Code:
$smarty->assign("login_lastname",$user_account["lastname"]); $smarty->assign("login_firstname",$user_account["firstname"]);

then in your template

Code:
Welcome back {$login_firstname} {$login_lastname}

... that might do the trick.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
eaglemobiles (03-27-2010)
  #6  
Old 10-25-2006, 06:43 AM
 
ranger82nd ranger82nd is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 159
 

Default Re: Customer name in login message

OK, nevermind Andrea, I see what your talking about.
PhilJ - worked perfectly!
__________________
X-Cart Gold v4.0.17 ~ EWD Hosting!
Reply With Quote
  #7  
Old 10-25-2006, 12:26 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: Customer name in login message

Thanks, Phil. That worked great!
__________________
~ Andrea Beight
Reply With Quote
  #8  
Old 05-14-2008, 11:19 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Customer name in login message

Phil do you have a fix for this in 4.1.9...I can't find the file check_useraccount.php?
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #9  
Old 05-14-2008, 11:20 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Customer name in login message

Found it in the include folder
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #10  
Old 05-14-2008, 11:32 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Customer name in login message

Got it to work great on 4.1.9.
Thanks Phil!
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:28 AM.

   

 
X-Cart forums © 2001-2020