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)
-   -   auth tpl help (https://forum.x-cart.com/showthread.php?t=9362)

RichieRich 09-15-2004 03:47 AM

auth tpl help
 
How does one change the "username is logged in !" to "customer name is logged in !" in the auth tpl area of the navigation.

TelaFirma 09-15-2004 04:41 AM

First, edit the file /include/check_useraccount.php al look for these lines at the bottom of the file:

Code:

x_session_save();

$smarty->assign("is_merchant_password", $is_merchant_password);
$smarty->assign("login",$login);


Add the line
Code:

$smarty->assign("user_account",$user_account);

so that it now reads:

Code:

x_session_save();
$smarty->assign("user_account",$user_account);
$smarty->assign("is_merchant_password", $is_merchant_password);
$smarty->assign("login",$login);


Next, edit the file /skin1/authbox.tpl and look for the variable {$login} near the top of the file. Change this to:

Code:

{$user_account.firstname}{$user_account.lastname}

RichieRich 09-15-2004 05:01 AM

excellent, thank you!


All times are GMT -8. The time now is 04:35 AM.

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