I'm developing a module where it will change the value of the field Display Data de Nascimento
and Ver CPF/CNPJ
to Configurações> clientes> Configurações> nome e opções de endereço
.
When this value is set as needed, it shows fields in the client registry in customer/account/create
, so I use the following code in an installation script, so that when the module is activated already enable those fields that do not come by default.
code:
$inchooSwitch = new Mage_Core_Model_Config();
$inchooSwitch->saveConfig('customer/address/dob_show', "req", 'default', '');
$inchooSwitch->saveConfig('customer/address/taxvat_show', "req", 'default', '');
Successful code changes, but the fields when I access the cliente/conta/criar/
page do not appear.
Any idea why this happens?