Jump to content

Recommended Posts


Posted

/resources/domains/dist.additionalfields.php

 

// .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,
];

Provavelmente seja isso que você procura.

Posted
1 hora atrás, Thiago Sabaia disse:

Onde isso está sendo solicitado?

Na hora do cliente fazer o pedido de uma hospedagem com registro de domínio

 

1 minuto atrás, Thiago Santos disse:

/resources/domains/dist.additionalfields.php

 

// .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,
];

Provavelmente seja isso que você procura.

Não entendi, é para colocar este código?

Posted
Agora, William Marques disse:

Na hora do cliente fazer o pedido de uma hospedagem com registro de domínio

 

Não entendi, é para colocar este código?

Essa é uma atualização do WHMCS onde já se encontra esse código, basta atualizar para português. Esse campo é obrigatório para domínio .BR, no caso CPF ou CNPJ.

 

Mas se quiser só remover, pode usar:

// .BR - REMOVE
$additionaldomainfields[".com.br"][] = array(
    "Name" => "Register Number",
    "Remove" => true    
);
$additionaldomainfields[".com.br"][] = array(
    "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>',
    "Remove" => true
);

 

Posted
17 horas atrás, William Marques disse:

Coloquei este código para remover e deu a seguinte mensagem:

 

Oops!

Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

Deixe o arquivo /resources/domains/dist.additionalfields.php original

Faça uma copia dele e altere o nome para /resources/domains/additionalfields.php

Dentro desse additionalfields.php vá até a linha 818 e troque o true para false

Antes
    'Required' => true,

Depois
    'Required' => false,

A recomendação do WHMCS é não editar o arquivo original, mas sim criar um adicional e fazer as mudanças dentro dele.

Posted

Aqui não deu certo, não sei se é pelas atualizações.. alguem pode explicar como fazer atualizado?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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

Do you agree with our terms?

-