X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Hiding Membership dropdown from register.php (https://forum.x-cart.com/showthread.php?t=21426)

chamberinternet 04-28-2006 03:59 AM

Hiding Membership dropdown from register.php
 
Hello ..

Is there a way in which i can hide the Membership dropdown combo from the 'Create Profile' page if there arent any membership levels created ?

I'm looking at membership_signup.tpl which has the following code:

Quote:

<tr valign="middle">
<td align="right">{$lng.lbl_signup_for_membership}</td>
<td></td>
<td nowrap="nowrap">
<select name="pending_membershipid">
<option value="">{$lng.lbl_not_member}</option>
{foreach from=$membership_levels item=v}
<option value="{$v.membershipid}"{if $userinfo.pending_membershipid eq $v.membershipid} selected="selected"{/if}>{$v.membership}</option>
{/foreach}
</select>
</td>
</tr>


I know some smarty code is involved, but i'm not sure on how to achieve this this ?

Any ideas ?

Regards

Shafiq :sK

balinor 04-28-2006 08:02 AM

Just un-check the Moderated sign-up for membership: checkbox in General settings and it will go away.

ewebartist 02-25-2008 08:52 AM

Re: Hiding Membership dropdown from register.php
 
Hi,

Is there a way to display certain membership levels on the registration page but keep others hidden (only available in the admin side)?

ie: on the registration page, I want only "retail" and "wholesale" to be available. But after someone registers, I want to be able to, on the admin side, change it to a specific membership designation that is only available on the admin side.

Any thoughts?

betty4 02-25-2008 10:15 AM

Re: Hiding Membership dropdown from register.php
 
Quote:

Originally Posted by ewebartist
Hi,

Is there a way to display certain membership levels on the registration page but keep others hidden (only available in the admin side)?

ie: on the registration page, I want only "retail" and "wholesale" to be available. But after someone registers, I want to be able to, on the admin side, change it to a specific membership designation that is only available on the admin side.

Any thoughts?


I too would like to achieve this. I don't want to the user to decide what level they are at, but instead should be left to the admin to determine what levels other than a standard user they are elevated to. Example is I created a level "Insider" which users would receive special dealas and notifications that standard users will not have ready access to.

ewebartist 05-12-2008 07:45 AM

Re: Hiding Membership dropdown from register.php
 
I think I figured out a quick fix.

In the following section of /admin/main/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}


add the following if statement as follows:

Code:

{foreach from=$membership_levels item=v}
{if $v.membershipid eq "1" OR $v.membershipid eq "2"}
<option value="{$v.membershipid}"{if $userinfo.pending_membershipid eq $v.membershipid} selected="selected"{/if}>{$v.membership}</option>
{/if}
{/foreach}


where the membershipid is equivalent to the ID of the membership level you would like to display in the drop-down (Hint: try experimenting with 1, 2, etc until you ahieve your desired options set)

With this done, you will be able to create as many membership levels on the admin side, and designate a user to a particular membership level after they register without them having access to it on the registration page. Hope this helps!

Thedae2k 05-14-2008 10:13 AM

Re: Hiding Membership dropdown from register.php
 
Anybody try this yet?


All times are GMT -8. The time now is 12:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.