I would like to have some Magento product attributes that are not editable from the admin interface and some that are not visible at all in that interface (as a method of st
OK, it looks like it can be done after all. After adding an observer for the catalog_product_load_after
event, the lockAttribute
method of the Mage_Catalog_Model_Abstract
class may be used to make a product attribute read-only. Here is the code for the observer method:
public function lockAttributes($observer) {
$event = $observer->getEvent();
$product = $event->getProduct();
$product->lockAttribute('attribute_code');
}