我为客户模块创建了新的特殊用途magento网格。如何自定义magento客户网格中的数据库值
在存在有一列usertype
它具有值0,1,2。
它将在客户网格页面中显示为0,1,2。
,但我需要显示,如果值是,
0 -> Inactive
1 -> Activated
2 -> Baned
哪能dothis?
这是_prepareColumns(我的代码grid.php):
$this->addColumn('usertype', array(
'header' => Mage::helper('customer')->__('Usertype'),
'width' => '150',
'index' => 'usertype'
));
如果这是可能在Magento。
任何人有任何解决方案吗? – Kichu 2013-02-23 07:05:59