| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Speed Bar Modification tabs | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Speed Bar Modification tabs
I cannot get this to work. I am trying to conditionally show a link in the speedbar tab. However, even if a user is registered but does not have a membership applied yet, the link will still appear. I want only registered users with a membership of "Wholesale" be able to see this link. All other times it is hidden. See code I used below. Any help appreciated.
PHP Code:
__________________
v4.5.5 Gold Plus/Apache/Linux/VPS php 5.3.3 v4.4.5 Gold/Apache/Linux/VPS php 5.3.3 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Speed Bar Modification tabs
Try looking for $userinfo.membershipid eq 2 or whatever the correct id is. If it's not present in $userinfo you might need to do something like add the following to include/check_useraccount.php:
PHP Code:
Then use: Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|