ScottN Posted January 31, 2019 Share Posted January 31, 2019 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 1, 2019 Share Posted February 1, 2019 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"); 1 Quote Link to comment Share on other sites More sharing options...
ScottN Posted February 1, 2019 Author Share Posted February 1, 2019 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 1, 2019 Share Posted February 1, 2019 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! 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 1, 2019 Share Posted February 1, 2019 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. 0 Quote Link to comment Share on other sites More sharing options...
ScottN Posted February 1, 2019 Author Share Posted February 1, 2019 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 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 1, 2019 Share Posted February 1, 2019 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? 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.