且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我该如何在Magento中更改客户store_id或将"created_from"设置为创建新客户时的属性

更新时间:2023-11-30 15:53:22

这是您要寻找的东西吗??

is this is what You are looking for :?

将此问题放在您在问题中提到的if之后.

Put this after if that You mentioned in Your question.

$fieldset->removeField('created_in');
$fieldset->addField('created_in', 'select', array(
   'name'      => 'created_in',
   'label'     => Mage::helper('adminhtml')->__('Created In'),
   'id'        => 'created_in',
   'title'     => Mage::helper('adminhtml')->__('Created In'),
   'class'     => 'input-select',
   'style'     => 'width: 80px',
   'options'   => array(
   //Put here list of websites || stores || store views
      'key_1' => 'VALUE_1', 
      'key_2' => 'VALUE_2'
   ),
), 'website_id');