提前致谢
我已经制作了一个带有选项是/否的属性我想在管理端的产品网格中显示这个我在网格中制作了列并放置了以下代码
<?php
$this->addColumn('approvedcustomer',
array(
'header'=> Mage::helper('catalog')->__('UrgeStatus'),
'index' => 'approvedcustomer',
));
?>
这里 approvedcustomer 是属性,它包含选项是/否 但在网格中显示 0 和 1 我如何显示 0 和 1 的已批准和未批准......
对不起我的英语,
再次感谢。
杰特。
最佳答案
您应该为您的列分配“选项”类型。
$this->addColumn('approvedcustomer',
array(
'header'=> Mage::helper('catalog')->__('UrgeStatus'),
'index' => 'approvedcustomer',
'type' => 'options',
'options' => array(
0 => 'No',
1 => 'Yes',
)
));
关于magento - 在 Magento 中如何在产品网格中显示自定义属性..?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3965649/