View Single Post
  #3  
Old 05-19-2003, 06:46 AM
 
jaymon jaymon is offline
 

Member
  
Join Date: Sep 2002
Location: St. Louis
Posts: 16
 

Default

Quote:
Originally Posted by funkydunk
try {$userinfo.firstname} instead of {$login}


funkydunk, thanks for the reply.

Hmmm, I tried that with no success. Not sure if it matters, but I'm using X-cart version 3.3.3.

I see the authbox.tpl template is calling /include/login.php and in it there's a call to the database that grabs the user data.

$user_data=func_query_first("select * from $sql_tbl[customers] where login='$username' and usertype='$usertype' and status='Y'");

and below that I assume this is putting the user data from the database into login

$login = $user_data[login]; //$username;

I assume that I need to pull the customers firstname from the database also, because it doesn't look like it's being done above. And then I can build a variable like the login above. I this a correct assumption? Sorry, I'm not a PHP wizard.

TIA,
jaymon
__________________
--
Austin
Reply With Quote