Jump to content

Stop asking people for nameservers when registering or transferring a domain?


ScottN

Recommended Posts

Hi guys!  Is there a way to stop WHMCS from asking customers to enter in nameservers during the initial domain name registration or transfer order process?  It does absolutely nothing but cause confusion... these nameservers are not set automatically by WHMCS (at least not with eNom), so customers are confused when it doesn't happen.  Or maybe I am missing a step here?  

- Scott

Link to comment
Share on other sites

17 hours ago, ScottN said:

Is there a way to stop WHMCS from asking customers to enter in nameservers during the initial domain name registration or transfer order process?  It does absolutely nothing but cause confusion... these nameservers are not set automatically by WHMCS (at least not with eNom), so customers are confused when it doesn't happen.

if they're not required and causing confusion to customers, you could try hiding them with a hook...

<?php

/**
* Hide Nameservers in Domains Configuration
* @author Brian!
*/
 
function cart_hide_nameservers_for_domains_hook($vars)
{
    if ($vars['templatefile']=='configuredomains'){
		return array("atleastonenohosting" => false);
    }
}
add_hook("ClientAreaPageCart", 1, "cart_hide_nameservers_for_domains_hook");
Link to comment
Share on other sites

Thanks, Brian!!  It's funny you mentioned the hook, because I was just reading about trying to add a new menu item to the Support side menu.  Unfortunately, I'm not a developer and I got pretty lost on this (despite doing a lot of reading).  If you could push me in the right direction, I may be able to sort both of these out!  For example, on the hook to hide the nameservers, is this editing an existing file, or creating a new file in /includes/hooks/?  And if new, does it need a special name?  Sorry for the hook newbie questions!!

Regarding the nameservers... do you have them on your own site?  Do they do anything for you or the customer?  Again, maybe I'm missing something.  Why does WHMCS ask the customer for these? What becomes of them?

- Scott

Link to comment
Share on other sites

Just now, ScottN said:

It's funny you mentioned the hook, because I was just reading about trying to add a new menu item to the Support side menu.

there'll be plenty of example hooks posted here previously, .eg bottom half of the one in the thread below...

- but shout out if you get stuck and tell me what you're wanting to do. 📢

5 minutes ago, ScottN said:

For example, on the hook to hide the nameservers, is this editing an existing file, or creating a new file in /includes/hooks/?  And if new, does it need a special name?

you're creating a new .php file in includes/hooks - you can call it anything you like (but might be useful to make it descriptive and must end in .php).

12 minutes ago, ScottN said:

Sorry for the hook newbie questions!! 

no worries - I was a newbie once too!

Link to comment
Share on other sites

54 minutes ago, ScottN said:

Regarding the nameservers... do you have them on your own site?  Do they do anything for you or the customer?  Again, maybe I'm missing something.  Why does WHMCS ask the customer for these? What becomes of them?

Are the nameserver fields you are seeing blank?  Do you have DNS clustering where clients use ns1.example.com (where example.com is your service's domain)?  If so on both, go to Setup -> General settings -> Domains -> Default nameservers and enter them there.   The fields on the order page will then show those nameservers.    As I'm sure you know, domains need nameservers in order to work.  So they either need to be set during registration or some other time.  Hiding the nameservers without the default nameserver set will likely make the domains point to the registrar's default nameservers and so they would need to be set later on.  Having the fields there allows for the client to enter them if they know them. 

Link to comment
Share on other sites

Hi Steven.  What I'm saying is... it doesn't matter what the customer enters into these nameserver fields.  WHMCS completely ignores them, from what I can tell.

I do have good nameservers entered into Setup -> General settings -> Domains -> Default nameservers, but this is not related to my question.  My question is... when a customer registers or transfers a name, they are asked to enter in up to 5 nameservers.  What does WHMCS do with these answers?  In my system, it appears that they go into a black hole.  So, I might as well hide them.

- Scott

Link to comment
Share on other sites

Okay, in that case something is wrong with your enom module, the fields in general in the order form, or something else as they should be handed off to enom during the registration process.    If you go to the domain's info page in the admin and change nameservers there, does that change the domain's nameservers?  If not, again something wrong the domain module. 

What version of WHMCS are you using?  Are you using the default enom module or a custom one?  How about the order form, is to default or custom? 

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.

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