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.
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.
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:
and replace to:Code:Only registered members can view the code.
save and check again.Code:Only registered members can view the code.
Viktor,
Flynax technical department,
Best wishes.
Thats great Viktor,
how about if we want to assign a default account type?
Hello Wei,
where 48 is your default account type.Code:Only registered members can view the code.
Viktor,
Flynax technical department,
Best wishes.
Hi Viktor, I actually just tried to implement the default account type here:
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.<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>