I need to create category custom attribute in admin for root category only not to subcategories.I searched but not getting solution for that.I can only create catgory custom attributes for both Root and Subcategories.
Anyone know suggest solution. I have created category attribute using below code.
$this->addAttribute('catalog_category', 'productservice_category', array( 'group' => 'General Information', 'input' => 'select', 'option' => array ( 'values' => array( 0 => 'Product', 1 => 'Service' ) ), 'type' => 'text', 'label' => 'Product/Service Category', 'backend' => 'eav/entity_attribute_backend_array', 'visible' => true, 'required' => true, 'visible_on_front' => true, 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, ));
I need to hide or set to editable to false for that attribute while adding Subcategories.But in admin both root categories and subcategories that attributes showing.I need to hide or not to edit while adding subcategories.This is my requirement.