Adding Comment to Certain TLD

The default domain name search list result looks like the following:

You may need to make additional comments to be displayed next to or under the certain TLD result, like the following:

To add such comments you need to customize the standard domain_listmain.tpl layout template:

  1. Memorize or write down an ID of a domain service plan that defines domain names sales in a zone you want to add comments to. You will need to specify certain <Service_Plan_ID> for both types of comments. For example, the service plan with ID=23 defines sales in the .bvt zone.
  2. Look through online store CSS available to select comments style or add your own. The class="Available" is used for comments displayed on the Domain name search results with additional comments figure.
  3. Open the domain_listmain template for editing. If the template is not available in the Layout Templates list, add it using the Add Standard Layout button.
  4. Add the following code to the template body:
    • right-hand comment

      <td valign="middle" align="left">
       {if $cd.PlanID == <Service_Plan_ID>}
        <span class="<CSS_style>">Test comment</span>
       {/if}
      </td>
    • below result comment

      {if $cd.PlanID == <Service_Plan_ID>}
      <tr><td colspan="5">
      <span class="<CSS_style>">Test comment 2</span>
      </td></tr>
      {/if}

      Note: If you add comment below result only, set colspan="4".

      The code should be added after the following lines:

      {if !$cd.IsUnavailable && $screenTransfer && $cd.TransferPosibility == 50}
       <td> 
        <label for="TransferKey[{$planPos}]" class="required">{$smarty.session.LANG.DOMAINSEXTENSION_TRANSFER_KEYREQUIRED}:</label>&nbsp; 
       </td> 
       <td>{widget name="TransferKey["|cat:$planPos|cat:"]" 
        id="TransferKey["|cat:$planPos|cat:"]"}
       </td> 
      {/if} 
      </tr>
  5. Save changes and synchronize online store.