Пример #1
0
 /**
  * Add customer middle name field
  *
  * @param Mage_XmlConnect_Model_Simplexml_Form_Element_Fieldset $contactInfoFieldset
  * @return Mage_XmlConnect_Block_Customer_Address_Form
  */
 protected function _addMiddleName(Mage_XmlConnect_Model_Simplexml_Form_Element_Fieldset $contactInfoFieldset)
 {
     $attributes = array();
     $attributes += $contactInfoFieldset->checkAttribute('value', $this->getNameWidgetBlock()->getObject()->getMiddlename());
     $contactInfoFieldset->addField($this->getNameWidgetBlock()->getFieldId('middlename'), 'text', array('label' => $this->getNameWidgetBlock()->__('M.I.'), 'name' => $this->getNameWidgetBlock()->getFieldName('middlename')) + $attributes);
     return $this;
 }