0

I want to add a few admin settings to the Catalog/Manage Categories screen, I've grepped various directories but most of the site is accessed by FTP, where is the XML file that controls the options on this screen?

1

Each tab under the category section of the admin normally relates to a attribute group. So if you have a custom attribute that you want to show up you should be able to add this to the correct group via an install script.

Here is the basics for a set-up script:

$installer = Mage::getResourceModel('catalog/setup','catalog_setup');
$installer->startSetup();

//Add group to entity & all attribute sets
$installer->addAttribute(
    'catalog_category',
    'attribute_code',
    array(
        'label' => 'Your New attribute',
        'group' => 'Group name here'
    )
);

$installer->endSetup();

The groups by default are General Information, Display Settings and Custom Design.

The database tables that these are stored in are:

eav_attribute_group - all the groups
eav_attribute_set - all the attribute sets (each group needs a set)
eav_entity_type - this is the entity in your case category (default I think the id is 9)
eav_attribute - the attribute itself

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.