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

Welcome back??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-24-2007, 03:49 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Welcome back??

Almost finished the store, but for this.

Is there a way of having only the returning customer's first name instead of both first and last? Just appears a bit formal for my taste, but I can be persuaded otherwise if it's the normal thing to do.

I assume this is the code {$smarty.cookies.GreetingCookie|replace:"\'":"'"}

I'm only just getting really comfortable with editing templates, I haven't got started on Smarty yet?

Regards

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
Reply With Quote
  #2  
Old 03-24-2007, 10:15 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Welcome back??

In modules/Greet_Visitor/set_cookie.php find this line.

PHP Code:
$first_last $user_data['firstname']." ".$user_data['lastname']; 

And change it to this:

PHP Code:
$first_last $user_data['firstname']; 

That's it.
Reply With Quote
  #3  
Old 03-24-2007, 11:19 PM
 
gregl gregl is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 98
 

Default Re: Welcome back??

Works a treat wjbrewer, thanks very much.

Here I am looking for Smarty or .tpl files and it's a simple PHP. Bah! I'll get there I'm sure.

Thanks again

Regards

Greg
__________________
XCart 4.0.19
XConfigurator 4.0.19
AOM 4.0.19
Zeus Server
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 10:58 AM.

   

 
X-Cart forums © 2001-2020