Article ID: 120760, created on Mar 27, 2014, last review on Aug 12, 2014

  • Applies to:
  • Business Automation 5.5
  • Business Automation 5.4

Question

By default account type is set to "Personal" on the online store checkout screen:

Your text to link here...

How to change it to "Business" be chosen by default?

Answer

It is possible to achieve by modifying the store layout template.

  1. Make sure the correct store is chosen for editing.
  2. 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

  3. 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" />&nbsp;{$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 />&nbsp;{$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
    -->
    
  4. Synchronize the store.
  5. Check the result in the store, test account creation.

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 801221f8cd76fba7300d1e6817c8e08b 92711db0799e8aefe8e51f12dace0496 210d017ddc3a076d22f0f865b1cf0730 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF