When you register a domain name -
you have a box to enter the domain you wish to register
then you have click to continue button below.
So, I just enter andy.com since I thought andy is my name and nobody has been taken yet
Unfortunately "Unavailable" -
Well, I need to enter another name to register, but click to continue button has disappeared!
So, I do like this in adddomain.tpl
<div class="cartbox" align="center">www. <input type="text" name="sld" size="40" value="{$sld}" /> <select name="tld">
{foreach key=num item=listtld from=$tlds}
<option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>{$listtld}</option>
{/foreach}
</select>
<input type="submit" value="Go">
</div>
So, I can enter another name to register than I need to go around.
Then, I enter another domain name again, and there also unavailable for all TLDs.
But Add to Cart button on the bottom is showing. I confused! I am not sure I can still add to cart. So I don't want to show this button if there nothing is availabe.
In the adddomain.tpl, I do edit as below:
{if $result.status eq $searchvar}
<p align="right"><input type="submit" value="{$LANG.addtocart}" /> <input type="button" value="{$LANG.viewcart}" onclick="window.location='cart.php?a=view'" /></p>
{/if}
So there no way to add to cart since nothing is available.
If I am wrong, please correct me.