Customers

Adding a Customer Attribute in Magento

This article will how to go about adding a customer attribute in Magento.
Similar to the catalog_product entity, Magento uses the EAV model to store customer information. There are two entities involved here: the customer entity and the customer_address entity. These entity types can be found in the eav_entity_type in the database.
The two main …

Magento Customer Address Entity

The Magento customer address entity is found in the database as a customer_address entity type found in the eav_entity_type table.
Similar to how customer attributes are created, we can use setup scripts from a custom module to add, modify or remove customer address attributes from the database.
First, the module’s declaration file needs to be …