1

I want to override Mage_Adminhtml_Block_Review_Grid but not able to do that. Following is my config file

This is my code

<?xml version="1.0"?>
<config>
    <modules>
        <Wibsoft_Adminhtml>
            <version>0.1.0</version>
        </Wibsoft_Adminhtml>
    </modules>
    <global>
        <blocks>
            <adminhtml>
                <rewrite>
                    <review_grid>Wibsoft_Adminhtml_Block_Review_Grid</review_grid>
                 </rewrite>
            </adminhtml>
        </blocks>
    </global>
</config>
  • what is the exact problem and what have you tried? – Fabian Blechschmidt Sep 11 '15 at 10:09
  • 1
    Please also post the class you've written – Sander Mangel Sep 11 '15 at 10:10
0

Override class NameSpace_moduleName_Block_Adminhtml_Review_Grid from your created custom module. Add the below code into your config.xml file.

<?xml version="1.0"?>
<config>
  <modules>
    <Custom_Wibsoft>
      <version>0.1.0</version>
    </Custom_Wibsoft>
  </modules>
  <global>
    <blocks>
      <wibsoft>
        <class>Custom_Wibsoft_Block</class>
      </wibsoft>
            <adminhtml>
                <rewrite>
                    <review_grid>Custom_Wibsoft_Block_Adminhtml_Review_Grid</review_grid>
                </rewrite>
            </adminhtml>
    </blocks>
  </global>
</config> 

Let me know if you face any query/concern regarding the same.

  • I noticed that someone have provided negative marking for my reply. May I know the reason for the same? – AddWeb Solution Pvt Ltd Sep 12 '15 at 9:52
  • Your reply is basically a copy and paste of the original question with some node name changes. – Smartie Sep 13 '15 at 7:56
  • @Smartie, Have you checked difference between both codes? Namespace is not called in the original question, through which successful results is not possible. Please try both codes by "COPY-PASTING" into your local module config xml file. – AddWeb Solution Pvt Ltd Sep 14 '15 at 6:31

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.