Hello Guys I am not Getting How to add discount field In Magento Admin grid.
Also Please explain how to add custom table value Display In order Grid.
magento-1.7magento-1.8order-grid
Hello Guys I am not Getting How to add discount field In Magento Admin grid.
Also Please explain how to add custom table value Display In order Grid.
Best Answer
Yup Got the Solutions For this we have to rewrite the class
Mage_Adminhtml_Block_Sales_Order_Grid
1) Create you custom module in magento and first create your Module configuration file in app/etc/module/Keyul_Discountadd.xml folder.
2) Create the folders in app/code/local/Keyul/Discountadd/Block and app/code/local/Keyul/Discountadd/etc respectively.
3) create the config.xml file in etc folder as below.
4) create the app\code\local\Keyul\Discountadd\Block\Adminhtml\Sales\Order\grid.php file as below.
Add Below code
5) Flush you cache and open sales grid it will appear Discount in grid.
Note. Don't Change the Directly in core files If you want to change then rewrite the class and then do changes.