FlyHost Posted February 15, 2017 Share Posted February 15, 2017 How do I put transfer button if domain name is registered? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 15, 2017 Share Posted February 15, 2017 in v7, you'd have to modify the jquery to do this as the lookups use ajax. one other thing to mention is that just because a domain is "unavailable", it doesn't necessarily mean it can be transferred... it could be a premium domain, it could be a reserved word, it could be a whois error etc... 0 Quote Link to comment Share on other sites More sharing options...
FlyHost Posted February 15, 2017 Author Share Posted February 15, 2017 in v7, you'd have to modify the jquery to do this as the lookups use ajax. one other thing to mention is that just because a domain is "unavailable", it doesn't necessarily mean it can be transferred... it could be a premium domain, it could be a reserved word, it could be a whois error etc... In WHMCs version 7, will I be able to use the old form order relation? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 15, 2017 Share Posted February 15, 2017 In WHMCs version 7, will I be able to use the old form order relation? i'm not sure I understand what you are asking... but just to clarify my earlier remarks about ajax, it will only apply to 'standard_cart'... if your default orderform template is 'Modern', you can still use the previous solution I posted about v6 https://forum.whmcs.com/showthread.php?109639-Add-transfer-domain-to-domainchecker&p=448302#post448302 in modern/domainoptions.tpl, you could change... {elseif $status eq "unavailable"} <div class="domainunavailable">{$LANG.cartdomaintaken|sprintf2:$domain}</div> <p align="center"> <button type="button" onclick="cancelcheck()" class="btn btn-default btn-lg"> <i class="fa fa-arrow-circle-left"></i> {$LANG.carttryanotherdomain} </button> </p> to... {elseif $status eq "unavailable"} {assign domsearch $domain|strpos:"."} {assign sld $domain|substr:0:$domsearch} {assign tld $domain|substr:($domsearch+1)} <div class="domainunavailable">{$LANG.cartdomaintaken|sprintf2:$domain} <a href="cart.php?a=add&domain=transfer&sld={$sld}&tld={$tld}" class="btn btn-primary">{$LANG.domainstransfer} {$sld}.{$tld}</a></div> <p align="center"> <button type="button" onclick="cancelcheck()" class="btn btn-default btn-lg"> <i class="fa fa-arrow-circle-left"></i> {$LANG.carttryanotherdomain} </button> </p> clicking on the transfer button will submit the domain to the transfer form and will give the user a price for the transfer. 0 Quote Link to comment Share on other sites More sharing options...
FlyHost Posted February 15, 2017 Author Share Posted February 15, 2017 i'm not sure I understand what you are asking... but just to clarify my earlier remarks about ajax, it will only apply to 'standard_cart'... if your default orderform template is 'Modern', you can still use the previous solution I posted about v6 https://forum.whmcs.com/showthread.php?109639-Add-transfer-domain-to-domainchecker&p=448302#post448302 in modern/domainoptions.tpl, you could change... {elseif $status eq "unavailable"} <div class="domainunavailable">{$LANG.cartdomaintaken|sprintf2:$domain}</div> <p align="center"> <button type="button" onclick="cancelcheck()" class="btn btn-default btn-lg"> <i class="fa fa-arrow-circle-left"></i> {$LANG.carttryanotherdomain} </button> </p> to... {elseif $status eq "unavailable"} {assign domsearch $domain|strpos:"."} {assign sld $domain|substr:0:$domsearch} {assign tld $domain|substr:($domsearch+1)} <div class="domainunavailable">{$LANG.cartdomaintaken|sprintf2:$domain} <a href="cart.php?a=add&domain=transfer&sld={$sld}&tld={$tld}" class="btn btn-primary">{$LANG.domainstransfer} {$sld}.{$tld}</a></div> <p align="center"> <button type="button" onclick="cancelcheck()" class="btn btn-default btn-lg"> <i class="fa fa-arrow-circle-left"></i> {$LANG.carttryanotherdomain} </button> </p> clicking on the transfer button will submit the domain to the transfer form and will give the user a price for the transfer. As the version rises, the encoding system makes it difficult. 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.