| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
If statement to limit content by membership level | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
Hi,
Previous solutions to limit content access by membership don't seem to be applicable in X-Cart 4.4.5 (http://forum.x-cart.com/showthread.php?p=172832 for example) Does anyone know how to tap into the membership level variable in X-Cart 4.4.5?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
|
#2
|
|||||||||
|
|||||||||
|
With older versions we added the following line towards the bottom of include/check_useraccount.php:
PHP Code:
|
|||||||||
|
|||||||||
|
#3
|
|||||||||
|
|||||||||
|
This is still working as of 4.4.5, thanks for the help!
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
|
#4
|
|||||||
|
|||||||
|
This is still working as of 4.5.4
The variable is {$user_membershipid} Works in catalog and product detail pages perfectly. Thanks for sharing.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||