Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 4
0
 protected function _prepareForm()
 {
     if (!$this->_form) {
         parent::_prepareForm();
         $this->_form->addFieldNameSuffix('order[shipping_address]');
         $this->_form->setHtmlIdPrefix('order:shipping_address_');
     }
     return $this;
 }