How to extend Magento Order Grid?
2011-01-25 22:52
381 查看
How to extend Magento Order Grid?
30th NOV 2010 | Posted by Domagoj Potkoc in Administration, Magento, OrdersHere is small example which explains how to modify order grid. Main class for order grid is “Mage_Adminhtml_Block_Sales_Order_Grid”, if you want to add some column you have to rewrite this class (block).
How to rewrite magento block:
Inchoo_Test_Block_Adminhtml_Order_Grid of course you need to create
your class Inchoo_Test_Block_Adminhtml_Order_Grid.
This is example of our block Inchoo_Test_Block_Adminhtml_Order_Grid:
we changed SQL query, we made inner join to second database table in
order to get data from second database table. This is our working
example and your SQL query you can modify as you wish.
相关文章推荐
- Magento - how to add custom variables to new order E-mail?
- How to Change the Order Increment ID and Prefix in Magento
- How to extend Magento core controller?
- How to create Magento invoice from order
- How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]
- How to setup/configure multiple stores in Magento?
- How to extend logical volume space (给逻辑卷扩展空间)
- Process Order API - How To Scripts
- How to extend ASP.NET datagrid for multi-selection of data rows.
- how to select data in multiple datatables after using join,group by and order by in Linq
- How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]
- How to use filters in a GridPanel
- How to sort an array in Ruby to a particular order?
- Magento: How to list all the products in a single category in a sidebar block
- How to Fix Magento’s Admin Login Failing (no error message) on Localhost
- How to Extend Django User Model 如何扩展Django用户模型
- recursion - How to write a simple preorder DOM tree traversal algorithm in jQuery? - Stack Overflow
- How to override Magento model classes?
- How to get Action Log of Work order
- How to Move Magento to a New Server or Domain