| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Hiding certain elements from anonymous users | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|