Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Hiding Membership dropdown from register.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-28-2006, 03:59 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #2  
Old 04-28-2006, 08:02 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just un-check the Moderated sign-up for membership: checkbox in General settings and it will go away.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-25-2008, 08:52 AM
 
ewebartist ewebartist is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 55
 

Default 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?
__________________
Cool.

X-Cart v 4.1.8 (Live Site - Slowly dying)
X-Cart v 4.1.11 (In Development- Being born)

Joomla 1.5.6 + X-cart 4.1.11 Integration complete Killer combination!
Reply With Quote
  #4  
Old 02-25-2008, 10:15 AM
  betty4's Avatar 
betty4 betty4 is offline
 

Advanced Member
  
Join Date: Aug 2006
Posts: 75
 

Default 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.
__________________
Was 4.0.17 Gold w/3rd party modules
Now 4.5.5 Gold with core modules
Reply With Quote
  #5  
Old 05-12-2008, 07:45 AM
 
ewebartist ewebartist is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 55
 

Default 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!
__________________
Cool.

X-Cart v 4.1.8 (Live Site - Slowly dying)
X-Cart v 4.1.11 (In Development- Being born)

Joomla 1.5.6 + X-cart 4.1.11 Integration complete Killer combination!
Reply With Quote
  #6  
Old 05-14-2008, 10:13 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Hiding Membership dropdown from register.php

Anybody try this yet?
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020