View Single Post
  #2  
Old 01-01-2007, 10:28 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: add site name to welcome

It's all right there in 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} <h1>{$lng.lbl_welcome_to|substitute:"company":$lng.lbl_site_title}</h1> {else} <h1>{$lng.lbl_welcome_to|substitute:"company":$config.Company.company_name}</h1> {/if}

DON'T EDIT the language variables (yet) -- edit the source in welcome.tpl first --

It sounds like you want to edit the contents of the <h3> so that it reads:

Code:
<h3>{$lng.lbl_welcome_to|substitute:"company":$config.Company.company_name},&nbsp;{$lng.lbl_welcome_back|substitute:"name":$_name} </h3>

THEN -- edit the language variable, "lbl_welcome_back" instead of:

Welcome back, {{name}}

make it,

{{name}}

That's one way to do it.

Hope this helps.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote