| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to get the membership of a user anywhere | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Trying to figure out what I need to have access to the membership of a user on any template.
If they're on register.php, doing {$userinfo.membership} will get me what I need, but it doesn't work on home.php for example. I've been trying to figure out what loads that info, but haven't gotten it to work yet. Can anyone point me to what I'm missing. Thanks
__________________
------- X-Cart Gold 4.0.8 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() This segment of code is from my wholesale tools mod.
Edit include/check_useraccount.php towards the bottom of the file where the other smarty->assign's are add the following: Code:
Then use: Code:
|
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Hello there...
The code works fine but how can I post a message if the customer is not logged, something like: YOU MUST BE LOGGED TO VIEW THE PRODUCTS. Thanks, Alex
__________________
Alex |
|||||||
#4
|
|||||||
|
|||||||
![]() I know this is an old post, but maybe still helpful to someone else.
Code:
or if you want to display a message after they have logged: Code:
__________________
Before you criticize someone, walk a mile in his shoes. That way, if he gets angry, he\'ll be a mile away - and barefoot. Version 4.0.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|