Registration Form Modification

Hello,



Please anyone can help me in the registration form filed.

When user register I want to disable the drop down menu Account type: so the user will register as customer only and from admin control panel I can make him as an affiliate





Regards



Ammar A. Al-Neamy

why would you want to disable it completely? Other addons you might want to use in the future may be using this selectbox. You can just switch off the “affiliate” option in selectbox menu. To do this:


  1. locate the skins/YOUR CUSTOMER SKIN/customer/addons/affiliate/hooks/profiles folder


  2. you may simply delete (make a local backup first!) the account_info.pre.tpl file. Or, if you like, you may just wrap the code with comment tag ({*), you will have something like this:


```php

{* $Id$ *}

{*THIS IS COMMENT WRAP

{if $user_data.user_type != “A”}

{assign var=“u_type” value=$smarty.request.user_type|default:$user_data.user_type}

{if $controller != 'checkout'}


{$lang.account_type}:

{$lang.customer}
{$lang.affiliate}


{/if}

{if $u_type == "P" && $u_type != $user_data.user_type}
{if $mode == "add"}{assign var="_but" value=$lang.register}{else}{assign var="_but" value=$lang.save}{/if}

{$lang.affiliate_agree_to_terms_conditions|replace:"[button_name]":$_but}


{/if}
{/if}
END OF COMMENT WRAP*}
```

Thank you very much its done and perfect