| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hiding a membership level | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Heya everyone.
I have three different membership levels and I want to hide one from the register.php page. I don't want to disable membership sign-ups, because I want my customers to be able to sign up on the other two levels without needing to be approved in the back end. All of the searching on this topic I've done has ended with that being the answer, but it's not for me. I need this one level hidden from the public so only admin can create a user profile for that level. Right now, I have this code set up on membership_signup.tpl: Code:
Pretty standard, I'm guessing. My membership IDs are 5, 6, and 7, with 7 being the level I don't want displayed, and I've tried several if/then statements and their variations to try getting it to break before it reaches that level: Code:
Since I only have three active membership levels right now, I also tried: Code:
I've tried putting these statements directly after the foreach and inside the option tags, but nothing works. I have this depressing thought that it could be a super easy solution that I'm just not seeing, so please, any ideas? Thanks, Nicole
__________________
--- X-Cart Gold, 4.4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Smarty "break" isn't around until v3 so that won't work. Try this (added if condition):
PHP Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() YES, perfect. As I suspected, so simple. Thanks, Cherie!
Nicole
__________________
--- X-Cart Gold, 4.4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|