Jump to content

Load AdditionalFields in ClientDomainContact

Recommended Posts

Hi there.

I noticed there are sometimes we need to put some additional information in the Contact Information form (/clientarea.php?action=domaincontacts&domainid=123), to fulfill certain TLDs Registry requirements, especially on ccTLDs.  For example: Company Registration number and etc.

There is always a quick fix to hardcode in the template but for sure it is not the appropriate way to do so.

Any advice I can inject those required custom fields based on selected TLDs, when client accessing respective domain contact?

Thanks in advanced.


Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
On 6/18/2021 at 5:55 AM, PapaKai said:

Hi Nelson,

Last time I helped you with the Registrar TLD & Princing Sync, looks like you can help me now 😄

Can you provide technical details on this?


Well... we are just learning from each other and sharing details, which the principle doesn't really care to share in much detail... lol

To an extends, all the additional domain fields must be able to display in a full detailed WHOIS lookup, so I make a simple workaround under registrar_GetContactDetails to first requset a full detail WHOIS, place them nicely in an array, then merge with the standard contact array and return the final.

Here's a snap of code which might help.

//Additional fields under Registrant.
$arr_additionalfields["Registrant"]["Registration No"] = $arr["registrant Registration No"];

$return = array(
            "Registrant" => array(
                "First Name" => $arr["registrant first name"],
                "Last Name" => $arr["registrant last name"],
	            // ...
            "Admin" => array(
                "First Name" => $arr["admin first name"],
                "Last Name" => $arr["admin last name"],
            "Technical" => array(
                "First Name" => $arr["technical first name"],
                "Last Name" => $arr["technical last name"],
            "Billing" => array(
                "First Name" => $arr["billing first name"],
                "Last Name" => $arr["billing last name"],

            $return = array_merge_recursive($arr_additionalfields,$return);

        return $return;


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • 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