閱讀668 返回首頁    go 阿裏雲 go 技術社區[雲棲]


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); ?> 

最後更新:2017-04-02 04:26:02

  上一篇:go [Qt Topic] – 中文化研習,做一個多語言的簡易天氣預報器
  下一篇:go 技術管理三字經:管、理、決!