I want to add one boolean field in each of Promotion Rule. Please can anyone suggest me how to proceed and which Model/Block need to be overridden.


Copy Main.php from

/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Main.php To /app/code/local/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Main.php

In function _prepareForm you can add your custom field:

$fieldset->addField('custom_boolean_field', 'select', array(
            'label'     => Mage::helper('catalogrule')->__('Custom Field'),
            'title'     => Mage::helper('catalogrule')->__('Custom Field'),
            'name'      => 'custom_boolean_field',
            'required' => true,
            'options'    => array(
                '1' => Mage::helper('catalogrule')->__('Yes'),
                '0' => Mage::helper('catalogrule')->__('No'),

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.