Public Member Functions | |
startAction () | |
Protected Member Functions | |
_construct () |
Definition at line 35 of file EditController.php.
_construct | ( | ) | [protected] |
Additional initialization
Reimplemented from Mage_Adminhtml_Sales_Order_CreateController.
Definition at line 41 of file EditController.php.
00042 { 00043 $this->setUsedModuleName('Mage_Sales'); 00044 }
startAction | ( | ) |
Start edit order initialization
Reimplemented from Mage_Adminhtml_Sales_Order_CreateController.
Definition at line 49 of file EditController.php.
00050 { 00051 $this->_getSession()->clear(); 00052 $orderId = $this->getRequest()->getParam('order_id'); 00053 $order = Mage::getModel('sales/order')->load($orderId); 00054 00055 if ($order->getId()) { 00056 $this->_getSession()->setUseOldShippingMethod(true); 00057 $this->_getOrderCreateModel()->initFromOrder($order); 00058 $this->_redirect('*/*'); 00059 } 00060 else { 00061 $this->_redirect('*/sales_order/'); 00062 } 00063 }