1

i want to rewrite importexport block of admin panel, but it's in app > code > core > mage > importexport > Block > Adminhtml so i am confuse about that how to rewrite if adminhtml block is not in app > code > core > mage > Adminhtml

i have added in config.xml

 <importexport>
       <rewrite> 
            <adminhtml_import_edit>cNAme_mName_Block_Adminhtml_Import_Edit</adminhtml_import_edit>
      </rewrite>
    </importexport>

--------------------------AND---------------------------------------

<blocks>
    <adminhtml>
      <rewrite>
        <import_edit>cName_mName_Block_Adminhtml_Import_Edit</_import_edit>
      </rewrite>
    </adminhtml>
</blocks>

but it's not work for me.

i have rewriting other block like.

app/code/core/Mage/Adminhtml/Block/Catalog/Form.php

using

<adminhtml>
    <rewrite><catalog_product_grid>cName_mName_Block_Catalog_Product_Grid</catalog_product_grid>
    </rewrite>
</adminhtml>
Sandeep Solanki
  • 229
  • 1
  • 4
  • 11

1 Answers1

0

Just create in app/local folder a new folder Mage/ImportExport/Block/Adminhtml/Import, then copy there the original Mage_ImportExport_Block_Adminhtml_Import_Edit file and modify it as you wish (the classname remains the same as the original). It will override the original file without any config.xml changes (so you can remove the related rewrite rules).

Zsolti
  • 746
  • 7
  • 7