2016-11-15 24 views

回答

0

嗨爲此,你可以看到下面的文件

應用程序\代碼\核心\法師\ Adminhtml \塊\用戶\ Grid.php

它會更好,如果你將這個文件拷貝到您的本地文件夾,以便在任何Magento的升級您的自定義的不會撤銷

app\code\local\Mage\Adminhtml\Block\Customer\Grid.php 
在這個

,你會看到的代碼下面的和平

/* $groups = Mage::getResourceModel('customer/group_collection') 
     ->addFieldToFilter('customer_group_id', array('gt'=> 0)) 
     ->load() 
     ->toOptionHash(); 

    $this->addColumn('group', array(
     'header' => Mage::helper('customer')->__('Group'), 
     'width'  => '100', 
     'index'  => 'group_id', 
     'type'  => 'options', 
     'options' => $groups, 
    )); 
*/ 

只是註釋掉這段代碼,你就完成了。

謝謝,讓我知道是否有任何查詢。

0

到這個文件的路徑:應用程序/代碼/核心/法師/ Adminhtml /座/客戶/ Grid.php

,並添加以下代碼以刪除從Magento管理客戶網格組列。

$this->addColumn('group', array(
    'header' => Mage::helper('customer')->__('Group'), 
    'width'  => '100', 
    'index'  => 'group_id', 
    'type'  => 'options', 
    'options' => $groups, 
));