1. rewrite the grid block file
<global> <blocks> <adminhtml> <rewrite> <sales_order_grid>Raveinfosys_Deleteorder_Block_Adminhtml_Sales_Order_Grid</sales_order_grid> </rewrite>
2. edit _prepareCollection function to left join ·sales_flat_order· table
protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $collection->getSelect()->joinLeft(array('b'=>'sales_flat_order'),'b.entity_id = main_table.entity_id',array('shipping_description')); $this->setCollection($collection); return parent::_prepareCollection(); }
3.add a 'shipping_description' column to _prepareColumns()function
$this->addColumn('shipping_description', array( 'header' => Mage::helper('sales')->__('Shipping Method'), 'index' => 'shipping_description' ));
相关推荐
Add Custom Properties to a PropertyGrid.c#属性有用的例子。 http://www.codeproject.com/KB/vb/PropertyGridEx.aspx
VC6 add files to project失效解决方法
Add Python to the search path on Windows
插件名称:Add-nofollow-to-XFN 插件功能:在WordPress后台的"链接" - "添加新链接"中的"链接关系(XFN)"中增加一个"nofollow"选项,安装插件后效果如下: 安装方法: 下载插件压缩包,解压后将 "Add-nofollow-to...
matlab功能函数,给直线加上箭头,使之成为矢线,起点[a,b],终点[c,d] 引用格式:add_arrow_to_line(a, c, b, d, color, linewidth, length_arrow) length_arrow指箭头边线长度
add no to grid and color grid
经过测试,并在项目中有用过的,页面收藏到桌面的功能 js版本,有例子可测试
new OrderUtils().order(list, "name", OrderUtils.DESC); 相关实例代码: public static void main(String[] args) { List<Person> list = getData(); // 获取无序数据 new OrderUtils().order(list, "name", ...
本程序用于解决CV6.0 与office2007冲突导致的无法添加文件的问题
drupal的addtoany模块,支持drupal6,可以方便的订阅、收藏或者通过email发送给其他朋友们,是个推广的好帮手。
liststruct list_head{ ...void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next) { next->prev = new; new->next = next; new->prev = prev; prev->next = new; }
This demonstrates how to add radio buttons to your menus
功能:-AddToAny的通用共享按钮和智能菜单-基于您可能已经在使用的服务进行个性化-与Gmail,WhatsApp,LinkedIn和更多社交媒体网络共享-AddToAny的“更多”按钮可让您随时随时访问任何其他服务-正确-单击以从上下文...
- ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....
添加到列表中 扩展到列表项目 javascript项目,可根据输入框中的值添加元素。 扩展为使用单选按钮基于单选将输入发送到列表。
This demonstrates how to add images to a menu.
Welcome to the book list program for book names.What would you like to do ?1. add an element to end of lis t2. add an element at a location 3. find an element by book name (linear search) 4. find ...
To add a new job login workflow In the Login Setup Folders cabinet, open the Workflows folder. Right-click and choose Add > Job Login Workflow. The Workflow property sheet appears. Enter a Name and ...
VC设计数组列表添加编程代码VC designed to add programming code array list
javascript 模拟 java中的 List,Map js文件为 js/utils.js IE6.0 测试通过 <br>List: add(var obj) //添加一个元素 remove(var index) //删除一个元素 get(var index) //获取一个元素 remove...