【发布时间】:2013-02-23 06:39:34
【问题描述】:
我为特殊用途的客户模块创建了新的 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 中是可能的。
【问题讨论】:
-
有人对此有任何解决方案吗?
标签: magento magento-1.7