Customer Attribute - Use In Forms
-
11-12-2019 - |
Pergunta
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:
- Where does this value get stored in the database?
- Is the customer module the only one that uses this, or are there possible values for other modules like Sales (order attributes.)
Solução
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.
- adminhtml_checkout
- adminhtml_customer
- adminhtml_customer_address
- checkout_register
- customer_account_create
- customer_account_edit
- customer_address_edit
- customer_register_address
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange