/** * Prepare Form and add elements to form * * @return Mage_Adminhtml_Block_Sales_Order_Create_Billing_Address */ protected function _prepareForm() { parent::_prepareForm(); $this->_form->addFieldNameSuffix('order[billing_address]'); $this->_form->setHtmlNamePrefix('order[billing_address]'); $this->_form->setHtmlIdPrefix('order-billing_address_'); return $this; }
/** * Define form attributes (id, method, action) * * @return Mage_Adminhtml_Block_Sales_Order_Create_Billing_Address */ protected function _prepareForm() { parent::_prepareForm(); $this->_form->setId('edit_form'); $this->_form->setMethod('post'); $this->_form->setAction($this->getUrl('*/*/addressSave', array('address_id' => $this->_getAddress()->getId()))); $this->_form->setUseContainer(true); return $this; }
/** * Prepare Form and add elements to form * * @return Mage_Adminhtml_Block_Sales_Order_Create_Shipping_Address */ protected function _prepareForm() { $this->setJsVariablePrefix('shippingAddress'); parent::_prepareForm(); $this->_form->addFieldNameSuffix('order[shipping_address]'); $this->_form->setHtmlNamePrefix('order[shipping_address]'); $this->_form->setHtmlIdPrefix('order-shipping_address_'); return $this; }
protected function _prepareForm() { if (!$this->_form) { parent::_prepareForm(); $this->_form->addFieldNameSuffix('order[shipping_address]'); $this->_form->setHtmlIdPrefix('order:shipping_address_'); } return $this; }