Jump to content

Add domain directly to whmcs cart.


nandin

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>";

}

}

?>

Link to comment
Share on other sites

  • 8 years later...

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