0
votes

I am doing custom product reports in magento. I followed as the steps in the url

But how can I add extra filter after "from:","to:","show By:". I know where to edit in core file(adminhtml/default/default/template/report/grid.php). But it is not the correct way. how to override this filter block for custom reports.

2

2 Answers

1
votes

If you want to edit the template file, implement your own module, add a section to the config.xml

<config>
    <stores>
        <admin>
            <!-- override default admin design package and theme -->
            <design>
                <package>
                    <name>default</name>
                </package>
                <theme>
                    <default>CHOOSE_A_NICE_NAME</default>
                </theme>
            </design>
        </admin>
    </stores>
</config>

and then start changing your template in

adminhtml/default/CHOOSE_A_NICE_NAME/template/report/grid.php
1
votes

Thanks for you swift reply Fabian Blechschmidt...almost I did the same but I overrode the template file.

adminhtml/default/mytheme/template/reportnew/grid.php

I just copied all the report files to mytheme/template folder (reportnew) and its working fine.

I have managed to add two extra fields viz country and a custom attribute "myattrib". But now I am unable to fetch the values from the grid to the model so that I can filter results based on these fields.

Thanks Murali