Nelson Neoh Posted April 9, 2021 Share Posted April 9, 2021 In registrar module, how could I get to know if the admin had configured to unticked "Use Clients Details", which layed under "General Settings" --> "Domains"? Can't find any clue under domain params. Wonder I can only check the config through Carbon? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 9, 2021 Share Posted April 9, 2021 3 hours ago, Nelson Neoh said: Wonder I can only check the config through Carbon? not through Carbon, that's only for dates. 📅 if it's a configuration value, then it's value should be stored in the tblconfiguration database table - specifically the RegistrarAdminUseClientDetails setting. the three usual ways to get the value would be a capsule query to the table, or using the Config class... use WHMCS\Config\Setting; ... and then in the function... $clientdetails = Setting::getValue('RegistrarAdminUseClientDetails'); in v8, if the feature is enabled, it's value should be "on"; if not, it should be empty.... for earlier versions (if relevant), you might need to check what the values should be... often "off" or "0" was used. the third way, would be to global declare $CONFIG and then access the relevant value in it's array - haven't tried it in ages, but assume it would still work. 1 Quote Link to comment Share on other sites More sharing options...
Nelson Neoh Posted April 13, 2021 Author Share Posted April 13, 2021 (edited) Wow! Thanks @brian! for the detail response. It is always be good to have you here! --------- Btw, I am still wondering, what will happens if Admin cliecked on this option? Really didn't notice what will be made by the registrar module. I am guessing the option will only provide a option which required registrar module to handle the contact details as per choosen by the admin... And as always, the poor WHMCS documentation never mention about this at all... sigh. Edited April 13, 2021 by Nelson Neoh 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 13, 2021 Share Posted April 13, 2021 1 hour ago, Nelson Neoh said: Btw, I am still wondering, what will happens if Admin clicked on this option? https://docs.whmcs.com/Domains_Tab#Default_Contact_Details Quote Default Contact Details Specify which details will be displayed in the whois database for domains registered through WHMCS upon initial registration (registrar module permitting). The client's details will always be used as the registrant contact, ticking Use Clients Details will use their details for all other contacts. But by unticking this option and entering your details in the fields beneath these will be used as the Billing, Admin and Technical contacts instead. Clients will be able to change this via their client area later. 1 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.