Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 如何添加&;删除管理中的列>;销售>;命令_Magento - Fatal编程技术网

Magento 如何添加&;删除管理中的列>;销售>;命令

Magento 如何添加&;删除管理中的列>;销售>;命令,magento,Magento,我必须删除Bill to Name列并添加两个新列product title Name(描述产品的产品名称)和Payment Method(描述在“管理>销售>订单”中下单时的付款方式)。首先,您将转到此文件: …/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php 并删除此内容: $this->addColumn('billing_name', array( 'header' => Mage::he

我必须删除Bill to Name列并添加两个新列product title Name(描述产品的产品名称)和Payment Method(描述在“管理>销售>订单”中下单时的付款方式)。首先,您将转到此文件:

…/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php

并删除此内容:

    $this->addColumn('billing_name', array(
        'header' => Mage::helper('sales')->__('Bill to Name'),
        'index' => 'billing_name',
    ));
    add two field in same grid table
    $this->addColumn('DBfieldname', array(
        'header' => 'header name',
        'index' => 'cantroller get params name',
    ));
并添加以下内容:

    $this->addColumn('billing_name', array(
        'header' => Mage::helper('sales')->__('Bill to Name'),
        'index' => 'billing_name',
    ));
    add two field in same grid table
    $this->addColumn('DBfieldname', array(
        'header' => 'header name',
        'index' => 'cantroller get params name',
    ));
它的相同内容添加两次,将生成两个字段。 cantroller获取参数,如添加数据cantroller:

'DBfieldname' => $this->getRequest()->getParam('cantroller get params name')
在编辑Cantolso中也有同样的过程。 在cantroller中获取数据产品集合,并获取产品的产品名称。 付款方式olso获取此集合中的参数