magento -- 增加会员信息字段

运行下面的代码,$AttrCode为新增的字段名

 

<?php $setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $AttrCode = 'occupation'; $settings = array ( 'position' => 1, 'is_required'=> 0 ); $setup->addAttribute('1', $AttrCode, $settings); ?> 

你可能感兴趣的:(magento -- 增加会员信息字段)