Question
By default account type is set to "Personal" on the online store checkout screen:
How to change it to "Business" be chosen by default?
Answer
It is possible to achieve by modifying the store layout template.
- Make sure the correct store is chosen for editing.
Add the layout template
organization.tpl
by clicking 'Add Standard Layout Template' button:PBA 5.4: Home > Product Director> Online Store Manager > Layout Templates
PBA 5.5: Home > Products > Online Store > Layout Templates
Modify it to look like this:
<!-- organization.tpl --> <table cellpadding="0" cellspacing="4" style="width: 100%;"> <tr> <td class="fieldLabel"><label id="label__AccountMode" class="required" for="AccountMode">{$smarty.session.LANG.CREATE_ACCOUNT_MODE}</label></td> <td align="left"> <label class="AccMode"><input type="radio" name="AccMode" id="AccModePersonal" onClick="SW.Display('organization', false, true); ToggleTaxReg();" value="Personal" /> {$smarty.session.LANG.CREATE_ACCOUNT_MODE_PERSONAL}</label> <label class="AccMode"><input type="radio" name="AccMode" id="AccModeBusiness" onClick="SW.Display('organization', true, true); ToggleTaxReg();" value="Business"checked /> {$smarty.session.LANG.CREATE_ACCOUNT_MODE_BUSINESS}<label> </td> </tr> </table> <div id="organization"> <table cellpadding="0" cellspacing="4" style="width: 100%;"> {assign var="companyDisabled" value=false} <tr> <td class="fieldLabel"><label id="label__CompanyNameID" class="required" for="CompanyNameID">{$smarty.session.LANG.COMPANY}</label></td> <td align="left"> <div class="fieldEntry"> {widget name="CompanyNameID" title=$smarty.session.LANG.COMPANY id="CompanyNameID" size="25" maxlength="64" disabled=$companyDisabled } </div> <div class="fieldComment"></div> </td> </tr> {GetCustomTemplate name="accattr.tpl" assign="file"} {include file=$file filter="COMPANY" disabled=$companyDisabled} </table> </div> <!-- end of organization.tpl -->
- Synchronize the store.
- Check the result in the store, test account creation.