Magento: Delete single order

install http://www.magentocommerce.com/magento-connect/EMThemes.com/extension/4562/em_deleteorder

--- ./app/code/community/EM/DeleteOrder/Block/Adminhtml/Sales/Order/Grid.php.org	2011-02-10 16:16:35.000000000 +0100
+++ ./app/code/community/EM/DeleteOrder/Block/Adminhtml/Sales/Order/Grid.php	2011-03-27 18:16:36.000000000 +0200
@@ -50,10 +50,10 @@
      *
      * @return string
      */
-    /*protected function _getCollectionClass()
+    protected function _getCollectionClass()
     {
         return 'sales/order_grid_collection';
-    }*/
+    }
 
     protected function _prepareCollection()
     {
1
--- ./app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php.org	2011-03-27 18:24:57.000000000 +0200
+++ ./app/code/community/EM/DeleteOrder/controllers/Adminhtml/Sales/OrderController.php	2011-03-27 18:25:14.000000000 +0200
@@ -43,6 +43,7 @@
 					$query=null;
 					$order = Mage::getModel('sales/order')->load($orderId);					
 					if($order->increment_id){
+                        $order->delete(); break;
 						/*$query="show tables like 'sales_flat_order'";
 						$rs=$write->fetchAll($query);*/						
 						$incId=$order->increment_id;
1

  

    

    Page not found | panticz.de
    







    









    
          
  
  


  
Page not found
The requested page could not be found.
1

Links
http://inchoo.net/ecommerce/magento/delete-test-orders-in-magento/ - Delete test orders in Magento
http://www.magentocommerce.com/magento-connect/EMThemes.com/extension/4562/em_deleteorder - Seamless Delete Order Module
http://www.magentocommerce.com/boards/viewthread/207792/P15/
http://www.magentocommerce.com/boards/viewthread/1680/P345/