View Single Post
  #1  
Old 10-04-2013, 02:00 PM
 
nhicks nhicks is offline
 

Newbie
  
Join Date: Mar 2012
Posts: 4
 

Default Hiding a membership level

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:
{foreach from=$membership_levels item=v} <option value="{$v.membershipid}"{if $userinfo.pending_membershipid eq $v.membershipid} selected="selected"{/if}>{$v.membership}</option> {/foreach}

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:
{if $v.membershipid.index == 6} {break} {/if} {if $membership_levels.membershipid == 6} {break} {/if}

Since I only have three active membership levels right now, I also tried:

Code:
{if $membership_levels == 2} {break} {/if}

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
Reply With Quote