_controller = 'sales_order'; $this->_mode = 'address'; parent::__construct(); $this->_updateButton('save', 'label', Mage::helper('sales')->__('Save Order Address')); $this->_removeButton('delete'); } /** * Retrieve text for header element depending on loaded page * * @return string */ public function getHeaderText() { $address = Mage::registry('order_address'); $orderId = $address->getOrder()->getIncrementId(); if ($address->getAddressType() == 'shipping') { $type = Mage::helper('sales')->__('Shipping'); } else { $type = Mage::helper('sales')->__('Billing'); } return Mage::helper('sales')->__('Edit Order %s %s Address', $orderId, $type); } /** * Back button url getter * * @return string */ public function getBackUrl() { return $this->getUrl( '*/*/view', array('order_id'=>Mage::registry('order_address')->getOrder()->getId()) ); } }