Jump to content

additionalfields.php only partially working


Recommended Posts

This is the dist.additionalfields.php entry I am trying to override:

 

Quote

$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,

];

$additionaldomainfields['.com.br'] = $additionaldomainfields['.br'];

And this is the way I'm trying to override it in additionalfields.php:

 

Quote

$additionaldomainfields[".br"][] = array(

                                                       "Name" => "Register Number",

                                                       "Remove" => true);

 

foreach ($registrobr_AllTLDs as &$registrobr_TLD) {

    $additionaldomainfields[$registrobr_TLD][] = array(

                                                       "Name" => "Register Number",

                                                       "Remove" => true,

                                                       );

    }

foreach ($registrobr_GenericTLDs as &$registrobr_TLD) {

    $additionaldomainfields[$registrobr_TLD][] = array (

                                             "Name" => "CPF ou CNPJ",

                                             "Type" => "text",

                                             "Size" => "18",

                                             "Description" => "<input type='hidden' id='cpf-cnpj-rgbr-formatter'><br /> Formato do CPF (11 d&iacutegitos) : NNN.NNN.NNN-NN <br /> Formato do CNPJ (14 d&iacutegitos) : NN.NNN.NNN/NNNN-NN",

                                             "Default" => "",

                                             "Required" => true);



 

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