Kuhl, Rubens Posted Sunday at 11:37 PM Share Posted Sunday at 11:37 PM In a fresh installation of 8.3.1, resources/domains/additionalfields.php is no longer able to redefine fields for database and registrar module purposes. But it is able to do that regarding cart page... perhaps 8.3.1 is not including that file in some situations but could be in others ? 0 Quote Link to comment Share on other sites More sharing options...
RadWebHosting Posted Thursday at 10:35 PM Share Posted Thursday at 10:35 PM 8.3.1 is a bit dated. Why not use latest version if this is fresh install? Do you have example of entries that are not applying? 0 Quote Link to comment Share on other sites More sharing options...
Kuhl, Rubens Posted Thursday at 10:47 PM Author Share Posted Thursday at 10:47 PM My bad, it was 8.13.1. Fresh install from the latest version. 0 Quote Link to comment Share on other sites More sharing options...
Kuhl, Rubens Posted Thursday at 11:55 PM Author Share Posted Thursday at 11:55 PM 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ígitos) : NNN.NNN.NNN-NN <br /> Formato do CNPJ (14 dígitos) : NN.NNN.NNN/NNNN-NN", "Default" => "", "Required" => true); 0 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.