| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
quick question about if's and userinfo | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
quick question about if's and userinfo
This seems really basic, and if anyone has seen a thread that can shed further light please help.(this is categories.tpl)
{if ($userinfo.membership eq "Registered")} <a href="home.php?cat=254">Download Upgrades </a> {else}<a href="../UP_login.php">Looking for upgrades? </a>{/if} I am using this code to change what a registered person sees...but it is not working? What am i missing to get this working? I feel like i must be close!
__________________
d@spyfx.com _________ X-Cart version 3.5.11 PHP 4.1.2 MySQL server 4.0.20-standard |
|||||||
#2
|
|||||||||
|
|||||||||
Code:
to see a better list of variables in the debug console edit /smarty.php change: Code:
to: Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||||
|
|||||||||
Hi,
I am having the same problem. Like the original poster, I would like to use the $userinfo.membership value to give a different greeting, present some other information, et cetera... But the $userinfo variable is not always set. It is only set when user is logging in, or on his cart/profile pages. Is there a change we can make so that the $userinfo variable is assigned as often as possible, so we can use the information from $userinfo in the layout? Cheers! epi
__________________
Xcart 4.0.19 Gold modules: X-affiliate, AOM, Feed Manager, SnS |
|||||||||
|
|||
X-Cart forums © 2001-2020
|