0
I’m developing a module where it will change the field value Display Data de Nascimento
and Ver CPF/CNPJ
in Configurações> clientes> Configurações> nome e opções de endereço
.
when this value is set as necessary, it shows fields in the client register in customer/account/create
, so I use the following code in an installation script, so that when the module is enabled already activate these 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', '');
code changes successfully, but the fields when I access the page cliente/conta/criar/
do not appear.
Any idea why this happens?