+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Only one account type, Hide Buyer!

  1. #11
    Hi So if i only want to show 3 account types instead of 8 types , how can i show only which i wanted account_type_ids for example the ids are 5,48,54. i want to show only these ones at registration.

  2. #12
    Hello Aytug,

    You can create new condition in code if you want.

    go to ftp://templates>>your_template>>tpl>>controllers>>regist ration.tpl find code at line ~124:

    Code:
    Only registered members can view the code.
    and replace to:

    Code:
    Only registered members can view the code.
    save and check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #13
    Thats great Viktor,

    how about if we want to assign a default account type?

  4. #14
    Hello Wei,

    Code:
    Only registered members can view the code.
    where 48 is your default account type.
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #15
    Quote Originally Posted by Viktor View Post
    Hello Wei,

    Code:
    Only registered members can view the code.
    where 48 is your default account type.
    Thanks Viktor,
    Works great

  6. #16
    Hi Viktor, I actually just tried to implement the default account type here:

    <select name="profile[type]">
    <option value="0">{$lang.select}</option>
    {foreach from=$account_types item='account_type'}
    {if $account_type.ID == 5 || $account_type.ID == 41 || $account_type.ID == 44}
    <option value="{$account_type.ID}" {if $smarty.post.profile.type == $account_type.ID}selected="selected"{else}{if $account_type == 41}selected="selected"{/if}{/if}>{$account_type.name}</option>
    {/if}
    {/foreach}
    </select>
    But it doesn't select the account type I assigned as default. Even though I changed the code as instructed. Could you please double check again? The code hide unwanted account types though. Thank you for that.

+ Reply to Thread