特別な目的のために、顧客モジュール用の新しいMagentoグリッドを作成しました。
列があるという点usertype
で、値は0、1、2です。
カスタマーグリッドページに0、1、2として表示されます。
しかし、値がであるかどうかを表示する必要があります、
0 -> Inactive
1 -> Activated
2 -> Baned
これどうやってするの?
これは_prepareColumns()の私のコードgrid.phpです:
$this->addColumn('usertype', array(
'header' => Mage::helper('customer')->__('Usertype'),
'width' => '150',
'index' => 'usertype'
));
これがMagentoで可能であれば。