Magento CE 1.6.2 - how to make a client attribute read-only?

I have successfully added a new client attribute (account number), but I need to make this field read-only in the backend (it is filled with ERP software and should be visible, but not editable through the Magento admin panel).

I used an observer with the lockAttribute method so that the directory attributes (category / product) are read-only in the admin panel, but there seems to be no corresponding method for client attributes.

What is the best way to accomplish this?

+4
source share
1 answer

You can set the frontend_input property as label

This way it will be read-only in the client editing form.

0
source

Source: https://habr.com/ru/post/1411005/


All Articles