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

anonymous usernames

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-04-2008, 10:22 AM
 
tpl08 tpl08 is offline
 

Newbie
  
Join Date: Feb 2008
Posts: 3
 

Default anonymous usernames

i'm using a simple call to show a user is logged in.

Quote:
{$login} {$lng.txt_logged_in}

If it's an anonymous user during checkout I get

Quote:
anonymous-11 is logged in

how can i prevent this ?

i'm guessing an if statement lik

Quote:
{if $anonymous_login eq ""}
__________________
X-Cart version 4.1.9
Reply With Quote
  #2  
Old 02-04-2008, 10:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: anonymous usernames

{if $login|truncate:9:"" eq "anonymous"}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-05-2008, 03:55 PM
 
cutterc cutterc is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 93
 

Default Re: anonymous usernames

Where do we put this statement? I never really thought about it..but I do like the idea...
__________________
X-Cart Gold
Version 4.1.9
RMA 4.1.9
One Page Checkout v1.3.11
CDSEO
PHP 5.2.9
SQL 5.1.30

Reply With Quote
  #4  
Old 02-05-2008, 04:00 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: anonymous usernames

Use it anywhere you don't want to show things to anon customers
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 06:42 AM.

   

 
X-Cart forums © 2001-2020