Jump to content

ResellerClub + .COM.BR domains


Go to solution Solved by edvancombr,

Recommended Posts

Hello

I'm trying to start my own IT business, and part of that is selling web hosting on WHMCS

I am trying to sell .COM.BR domains with ResellerClub, and when i register domain, it asks for a CPF/CNPJ (requirement for Brazilian domains), but the page says "Register Number", and it's not good UX for the client to have to hover over the "Learn More" button to learn it's asking for their CPF/CNPJ
I need to change that "Register Number" text to "CPF ou CNPJ" to make it more user friendly

Someone please help me, thanks <3

Link to comment
Share on other sites

  • Solution
On 5/26/2024 at 2:27 PM, RayTF said:

image.png.c02a9c48e614fb4304a485e2a6078630.png

 

Forgot to include a screenshot. here it is

Copy and paste the field definition from the /resources/domains/dist.additionalfields.php file into your custom /resources/domains/additionalfields.php file.

Locate line 815 and edit as per your need.
// .BR
$additionaldomainfields['.br'][] = [
    'Name' => 'Register Number',
    'LangVar' => 'br_register_number',
    'Type' => 'text',
    'Size' => 20,
    'Default' => '',
    'Description' => '<sup style="cursor:help; text-align:justify;" title="The CPF is the financial identity'
        . ' number provided by the Brazilian Government for every'
        . ' Brazilian citizen in order to charge taxes and financial matters.'
        . ' The CNPJ is the same as the CPF but it works for companies.'
        . ' CPF must be given in the following format: NNN.NNN.NNN-NN.'
        . ' CNPJ must be given in the following format: NN.NNN.NNN/NNNN-NN">Learn More</sup>',
    'Required' => true,
];
If you wish, you can remove the field https://docs.whmcs.com/Additional_Domain_Fields#Remove_a_field
Other information https://docs.whmcs.com/Additional_Domain_Fields
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