在这里,我尝试添加一个选择类型的客户地址属性。我可以使用数组来设置选项值和标签吗?
$newAttributeName = "adt";
$attribute = array(
'type' => 'int',
'input' => 'select',
'label' => 'Ad TYPE',
'visible' => true,
'required' => true,
'user_defined' => true,
'searchable' => true,
'filterable' => true,
'comparable' => true,
'visible_on_front' => true,
'source' =>
);
$setup = new Mage_Eav_Model_Entity_Setup('core_setup');
$setup->addAttribute('customer_address', $newAttributeName, $attribute);
有人可以帮我解决这个问题吗?