Jump to content

Additional TLDs to Search not working


4ux

Recommended Posts

Hi,

 

The Additional TLDs to Search is not showing the additional TLDs for registration.

In the log i can see the lookup to the LTD.

It's not showing it on the lookup result page.

 

See the screen dump's

 

How can i get this to work?

 

hostingnet.nu/wp-content/uploads/2015/08/screen1.png

hostingnet.nu/wp-content/uploads/2015/08/screen2.png

Link to comment
Share on other sites

I assume it's because the alternatives are taken - it only shows the available options (.info)

 

if you search for hostingnet2.nl, then it will show more additional TLDS because they're available.

 

if you wanted to show the additional tlds, whether they were available or not, then you'd have to modify the six/domainchecker-results.tpl template and not use $searchresults as it only contains available TLDs.

Link to comment
Share on other sites

as a rough example, you would need to do something along these lines... quickly tested and seems to work, but test it thoroughly yourself - i'm not providing any guarantees with it! :)

 

~line 99 of domainchecker-results.tpl, change the following....

 

                        {foreach $searchResults.suggestions as $i => $result}
                           <tr{if $i >= 10} class="hidden"{/if}>
                               <td>
                                   <strong>{$result.domainName}</strong>
                               </td>
                               <td class="text-center">
                                   {$result.shortestPeriod.register}
                               </td>
                               <td class="text-center">
                                   <button type="button" class="btn btn-default btn-sm" onclick="addToCart(this, true)">
                                       <span class="glyphicon glyphicon-shopping-cart"></span>
                                       {$LANG.addtocart}
                                   </button>
                               </td>
                           </tr>
                       {/foreach}

to...

 

                        {foreach $availabilityresults as $i => $result}
                           {if $result.domain neq $domain}
                           <tr{if $i >= 10} class="hidden"{/if}>
                               <td>
                                   <strong>{$result.domain}</strong>
                               </td>
                               <td class="text-center">
                                   {$result.shortestPeriod.register}
                               </td>
                               <td class="text-center">
                                   {if $result.status neq "available"}
                                   <button type="button" class="btn btn-default btn-sm">
                                       <span class="glyphicon glyphicon-remove"></span> 
                                       {$LANG.domainunavailable}
                                   </button>
                                   {else}
                                   <button type="button" class="btn btn-default btn-sm" onclick="addToCart(this, true)">
                                       <span class="glyphicon glyphicon-shopping-cart"></span>
                                       {$LANG.addtocart}
                                   </button>
                                   {/if}
                               </td>
                           </tr>
                           {/if}
                       {/foreach}

if you do that, and then search for 'whmcs', you will see the following (TLDs will be different depending upon your own settings)...

 

zJrLA4I.png

 

the "Add to Cart" buttons still work, the "Unavailable" buttons do nothing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated