Jump to content
Nelson Neoh

When "Use Clients Details" unticked, how I know?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Posted (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 by Nelson Neoh

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
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