4ux Posted August 17, 2015 Share Posted August 17, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 17, 2015 Share Posted August 17, 2015 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. 0 Quote Link to comment Share on other sites More sharing options...
4ux Posted August 18, 2015 Author Share Posted August 18, 2015 Hi Brian, Thanks for your answer. Can you tell me how to change the domainchecker-results.tpl template to show the additional tlds, whether they were available or not. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 18, 2015 Share Posted August 18, 2015 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)... the "Add to Cart" buttons still work, the "Unavailable" buttons do nothing. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.