nandin Posted March 17, 2015 Share Posted March 17, 2015 Hello, It there a way to add a domain name to whmcs shopping cart without going through whmcs domainchecker. I'm want to use another domainchecker for tlds that whmcs do not support and by available result add it directly to whmcs cart by click a button. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
Alex - Arvixe Posted March 17, 2015 Share Posted March 17, 2015 You can add TLDs so the domainchecker supports any TLDs it does not currently. You just need to edit: /includes/whoisservers.php See this thread for an example: http://forum.whmcs.com/showthread.php?86494-New-gTLDs-Whois-Server You can add the domain in the order link but you'd need to dothe above first. The link would look like: https://url-to-whmcs.com/whmcs/cart.php?a=add&domain=register&sld=google&tld=.com 0 Quote Link to comment Share on other sites More sharing options...
nandin Posted March 17, 2015 Author Share Posted March 17, 2015 Hello alex, Thank you for your replay. I just want to add .cv to whmcs, but unfortunately there is no whois server available for this cctld. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 18, 2015 Share Posted March 18, 2015 I just want to add .cv to whmcs, but unfortunately there is no whois server available for this cctld. there is a http whois available at the dns.cv web site, but I could never manage to get it to work with WHMCS. as you can link WHMCS to a http whois, you could try writing a script that would query the dns.cv site whois and then link WHMCS to your script. however, if all you want to do is add .cv domains to WHMCS, and can live without checking if they're already registered via whois, you could cheat and add the following entry to whoisservers.php .cv|whois.internic.net|No match for .com.cv|whois.internic.net|No match for this should reply that all .com.cv and .cv domains are available for registration, and you can then add them to the WHMCS cart. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted March 18, 2015 Share Posted March 18, 2015 Maybe you could solve this issue by directly using the API the registrar you use to register .cv domains. There should be no reason this is not already implemented by them. What is your registrar/platform? LogicBoxes? Enom? Others? 0 Quote Link to comment Share on other sites More sharing options...
nandin Posted March 18, 2015 Author Share Posted March 18, 2015 Hello, Thank you for your repay. As far I know there is no api available for the .cv domain. The domain can only be register for companies registered in Cape Verde or trademarks. They also require an active host for the domain name in order to register the domain. The only way to check if the domain is available is to check it there a dns record available or not. To do this check I use this code on a form. <?php if(isset($_POST['check'])) { if (!empty($_POST['domain_name'])){ $name_domain = trim($_POST['domain_name']).$_POST['suffix']; $response = @dns_get_record($name_domain, DNS_ALL); if(empty($response)){ echo "<H2 style='color:green;' >Domain $name_domain is available.</H2>"; }else{ echo "<H2 style='color:red;'>Domain $name_domain has taken.</H2>"; } } else { echo "<H2 style='color:red;'>Error: Domain name can not be left empty.</H2>"; } } ?> 0 Quote Link to comment Share on other sites More sharing options...
Faiz M Posted July 14, 2023 Share Posted July 14, 2023 how to do the same for the current version of whmcs? 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.