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)
-   -   how do i display the customers name on the home page? (https://forum.x-cart.com/showthread.php?t=36672)

Topuk 01-10-2008 05:35 PM

how do i display the customers name on the home page?
 
how do i display the customers name on the home page?

mitash 01-10-2008 05:44 PM

Re: how do i display the customers name on the home page?
 
If you go to modules section u will find Greet Visitor Turn that on

Topuk 01-10-2008 09:51 PM

Re: how do i display the customers name on the home page?
 
thank you, is there any way to have the customer name appear on more then just that page... ie. what is the smarty value i would need to add?

SpinyMan 01-26-2008 08:28 AM

Re: how do i display the customers name on the home page?
 
Quote:

Originally Posted by Topuk
thank you, is there any way to have the customer name appear on more then just that page... ie. what is the smarty value i would need to add?


Hi,
put this code on the "customer/home.tpl" and delete it from the "customer/main/welcome.tpl"
Code:

{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''}
{assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'":"'"}
<h3>{$lng.lbl_welcome_back|substitute:"name":$_name} </h3>
{elseif $lng.lbl_site_title}
<h3>{$lng.lbl_welcome_to|substitute:"company":$lng.lbl_site_title}</h3>
{else}
<h3>{$lng.lbl_welcome_to|substitute:"company":$config.Company.company_name}</h3>
{/if}



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

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