1
私は顧客モデルに属性を追加しようとしています。登録時に顧客がジョブのカテゴリを選択できる選択リスト:Magento - 顧客モデルにカスタム属性を追加する
$this->addAttribute('customer', 'customer_sector', array(
'label' => 'Settore',
'type' => 'int',
'input' => 'select',
'default' => '0',
'backend' => '',
'frontend' => '',
'default_value' => '',
'visible' => 1,
'user_defined' => 1,
'searchable' => 1,
'filterable' => 1,
'visible_on_front' => 0,
'visible' => true,
'visible_on_front' => true,
'required' => false,
// what i have to add on 'global'?
//'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
'option' => array ('value' => array(1 => array('opzione 1'),2 => array('opzione 2'), 3 => array('opzione 3')))
));
は正しいですか?私はmagentocommerce.comのガイドを見つけました(そしてここでも多くの似たような質問があります)が、製品にカスタム属性を追加する方法を説明しています。
THX
ルーク
とあなたのMagentoのバージョンがありますか? –
@AntonS:Magento 1.4.1.1 – Luke