1

I've found tutorials discussing the creation of a new customer attribute, and they include this:

Mage::getSingleton('eav/config')
    ->getAttribute('customer_address', 'building_entry_code')
    ->setData('used_in_forms', array('adminhtml_customer_address'))
    ->save();

Two questions:

  1. Where does this value get stored in the database?
  2. Is the customer module the only one that uses this, or are there possible values for other modules like Sales (order attributes.)

1 Answer 1

3

This information gets stored in the table customer_form_attribute. This table contains the key to the form and the attribute_id.

It is only used with customer attribute and has the following forms as options.

  1. adminhtml_checkout
  2. adminhtml_customer
  3. adminhtml_customer_address
  4. checkout_register
  5. customer_account_create
  6. customer_account_edit
  7. customer_address_edit
  8. customer_register_address

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.