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

Smarty $userinfo variable

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-23-2008, 02:50 PM
 
drnlz drnlz is offline
 

Newbie
  
Join Date: Apr 2008
Posts: 8
 

Default Smarty $userinfo variable

So, I'm adding some custom user account fields and was wondering if someone could tell me what file is responsible for loading the user account data into the Smarty $userinfo variable.
Thanks!
__________________
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 10-23-2008, 03:02 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Smarty $userinfo variable

If I recall correctly its include/register.php but the $userinfo variable isn't available globally.
Reply With Quote
  #3  
Old 10-23-2008, 03:05 PM
 
drnlz drnlz is offline
 

Newbie
  
Join Date: Apr 2008
Posts: 8
 

Default Re: Smarty $userinfo variable

Well, I did some digging and just answered my own question so to whom it may concern:

PHP variable $userinfo is created and populated in include/func.user.php and is then passed to smarty on line 676 of cart.php:
Code:
$smarty->assign("userinfo",$userinfo);
__________________
X-Cart Version 4.1.9
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 06:04 AM.

   

 
X-Cart forums © 2001-2020