X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Smarty $userinfo variable (https://forum.x-cart.com/showthread.php?t=43201)

drnlz 10-23-2008 02:50 PM

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!

Jon 10-23-2008 03:02 PM

Re: Smarty $userinfo variable
 
If I recall correctly its include/register.php but the $userinfo variable isn't available globally.

drnlz 10-23-2008 03:05 PM

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);


All times are GMT -8. The time now is 08:38 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.