X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Hiding certain elements from anonymous users (https://forum.x-cart.com/showthread.php?t=15629)

balinor 08-02-2005 05:16 AM

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!

balinor 08-05-2005 04:12 AM

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

{if $login|truncate:9:"" ne "anonymous"}


All times are GMT -8. The time now is 06:41 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.