In standard Magento only product attributes can be managed in the admin. Attributes for categories, customers and customer addresses can only be added or changed by a developer. This module adds attribute management screens for these three types, so shop managers and agencies can maintain them in the same way as product attributes.
Features
- Three new attribute grids: category attributes, customer attributes and address attributes, each with an “Add New Attribute” button.
- Create new attributes and edit or delete existing user-defined ones.
- Edit attribute properties such as attribute code, input type, default value, required and unique value, input validation, scope (global, website or store view), sort order and position.
- “Manage Labels” tab to enter the attribute label per store view, and options for list attributes.
- Category attributes: storefront settings such as “Allow HTML Tags on Storefront” and “WYSIWYG Enabled”.
- Customer and address attributes: choose the “Customer Forms” in which the attribute is used, for example customer registration, account editing, address forms in the store, the customer and address forms in the admin and the admin checkout.
- Customer attributes: decide whether the attribute is used, visible, filterable and searchable in the admin customer grid, and set the multiline count for multi-line fields.
- Saving a category, customer or address attribute does not trigger an unnecessary update of the product search index.
Configuration
The new screens are found in the admin under Stores > Attributes > Category, Stores > Attributes > Customer and Stores > Attributes > Address. Access is controlled by the same admin permission as product attributes. There are no further settings.
Good to know
The module manages the attribute definitions. How and where an attribute is shown in the store or in admin forms also depends on the respective form and theme; for category attributes, showing them in the category edit form or on category pages may require additional customization.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-eav-attributesThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.