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

Hiding certain elements from anonymous users

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2005, 05:16 AM
 
balinor balinor is offline
 

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

Default Hiding certain elements from anonymous users

A client of mine has a rewards program which we are using Carrie's Rewards Point mod for. We also have a membership menu which has things like order history, wishlist, etc. Problem is, when someone checks out anonymously, they still have access to edit their profile, view the member section and also get reward points.

I'm looking for the Smarty variable to hide these items from anonymous users. I thought I could use {if $anonymous ne ""} but that doesn't work. Anyone have the correct syntax for this? Maybe using the username variable with a wildcard? Thanks in advance!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #2  
Old 08-05-2005, 04:12 AM
 
balinor balinor is offline
 

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

Default

In case anyone is looking for this solution, here's the correct syntax:

{if $login|truncate:9:"" ne "anonymous"}
__________________
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 10:32 PM.

   

 
X-Cart forums © 2001-2020