I need a little help ..

I need to create a new field in the registration form, and this field needs to be dynamic.

I enter the panel and add the options that I want to appear in this form, and in the registration page the user chooses one of this information.

I need 2 tables to make this query, just by business rule.

Can someone help me?

1 Answer 1


You have to follow this answer, then you replace the install script with this one:

$this->addAttribute('customer', 'license_number', array(
    'type'      => 'int',
    'label'     => 'License Number',
    'input'     => 'select',
    'position'  => 120,
    'required'  => false,//or true
    'is_system' => 0,
    'source'    => 'eav/entity_attribute_source_table', 
    'option'    => [
        'values'=> [
             0 => 'Information 1',
             1 => 'Information 2',
             2 => 'Information 3',
$attribute = Mage::getSingleton('eav/config')->getAttribute('customer', 'license_number');
$attribute->setData('used_in_forms', array(
$attribute->setData('is_user_defined', 0);

Nb: The attribute wil be stored in eav_attribute table.

  • can how i create a table with that? Aug 14, 2017 at 20:47
  • I need to create 2 tables, like a hive of activity, and hive of activity erp.. But i don't know how to start.. Aug 14, 2017 at 20:53
  • the solution that i gave you adds the field and attribute in eav_attribute table
    – PЯINCƎ
    Aug 14, 2017 at 22:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.