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

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-10-2008, 05:35 PM
 
Topuk Topuk is offline
 

Member
  
Join Date: Dec 2007
Posts: 23
 

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

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

http://www.northidahoflix.com
http://www.lotionsandpotionsonline.com

X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 01-10-2008, 05:44 PM
  mitash's Avatar 
mitash mitash is offline
 

X-Adept
  
Join Date: Jan 2006
Location: Australia
Posts: 450
 

Default 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
__________________
eCommerce - Strategy / Design / Development / Marketing / Maintenance

Call within Australia:
Phone: 1300 648 274 | Mobile: 0417 241 950
Call outside Australia:
+61 417 241 950 |

Email:
results@mitash.com | Skype: mitashau | Web: www.mitash.com
Reply With Quote
  #3  
Old 01-10-2008, 09:51 PM
 
Topuk Topuk is offline
 

Member
  
Join Date: Dec 2007
Posts: 23
 

Default 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?
__________________
Topuk

http://www.northidahoflix.com
http://www.lotionsandpotionsonline.com

X-Cart Version 4.1.9
Reply With Quote
  #4  
Old 01-26-2008, 08:28 AM
  SpinyMan's Avatar 
SpinyMan SpinyMan is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 30
 

Default 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}
__________________
Regards,
SpinyMan

X-Cart Templates Store -
http://www.x-cart-customization.com/shop/

X-Cart Customization Services -
http://www.x-cart-customization.com/
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 02:16 PM.

   

 
X-Cart forums © 2001-2020