Raveinfosys_Deleteorder - Version 1.0.4

Version Notes

This version is properly tested on the following Magento CE versions: 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7,1.7.0.1, 1.7.0.2, 1.8, 1.8.1.0;
In this particular version we are supporting it to run on PHP V 5.4.X

Download this release

Release Info

Developer Rave Infosys
Extension Raveinfosys_Deleteorder
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.4

app/code/{local → community}/Raveinfosys/Deleteorder/Block/Adminhtml/Sales/Order/Grid.php RENAMED
File without changes
app/code/{local → community}/Raveinfosys/Deleteorder/Block/Adminhtml/Sales/Order/Render/Delete.php RENAMED
File without changes
app/code/{local → community}/Raveinfosys/Deleteorder/Block/Adminhtml/Sales/Order/View.php RENAMED
File without changes
app/code/{local → community}/Raveinfosys/Deleteorder/Helper/Data.php RENAMED
File without changes
app/code/{local → community}/Raveinfosys/Deleteorder/controllers/Adminhtml/DeleteorderController.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Raveinfosys_Deleteorder_Adminhtml_DeleteorderController extends Mage_Adminhtml_Controller_action
4
  {
5
 
6
  protected function _initAction() {
@@ -34,13 +34,13 @@ class Raveinfosys_Deleteorder_Adminhtml_DeleteorderController extends Mage_Admin
34
  try {
35
  $order->delete()->save();
36
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Order was successfully deleted'));
37
- $this->_redirectUrl(Mage::getBaseUrl().'admin/sales_order/index');
38
  } catch (Exception $e) {
39
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
40
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('order_ids')));
41
  }
42
  }
43
- $this->_redirectUrl(Mage::getBaseUrl().'admin/sales_order/index');
44
  }
45
  public function massDeleteAction() {
46
  $deleteorderIds = $this->getRequest()->getParam('order_ids');
@@ -60,6 +60,6 @@ class Raveinfosys_Deleteorder_Adminhtml_DeleteorderController extends Mage_Admin
60
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
61
  }
62
  }
63
- $this->_redirectUrl(Mage::getBaseUrl().'admin/sales_order/index');
64
  }
65
  }
1
  <?php
2
 
3
+ class Raveinfosys_Deleteorder_Adminhtml_DeleteorderController extends Mage_Adminhtml_Controller_Action
4
  {
5
 
6
  protected function _initAction() {
34
  try {
35
  $order->delete()->save();
36
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Order was successfully deleted'));
37
+ $this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/index'));
38
  } catch (Exception $e) {
39
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
40
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('order_ids')));
41
  }
42
  }
43
+ $this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/index'));
44
  }
45
  public function massDeleteAction() {
46
  $deleteorderIds = $this->getRequest()->getParam('order_ids');
60
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
61
  }
62
  }
63
+ $this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/index'));
64
  }
65
  }
app/code/{local → community}/Raveinfosys/Deleteorder/etc/config.xml RENAMED
File without changes
app/code/local/Raveinfosys/Deleteorder/Block/Adminhtml/Deleteorder.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Raveinfosys_Deleteorder_Block_Adminhtml_Deleteorder extends Mage_Adminhtml_Block_Widget_Grid_Container
3
- {
4
- public function __construct()
5
- {
6
- $this->_controller = 'adminhtml_deleteorder';
7
- $this->_blockGroup = 'deleteorder';
8
- $this->_headerText = Mage::helper('deleteorder')->__('Delete Order');
9
- // $this->_addButtonLabel = Mage::helper('deleteorder')->__('Add Item');
10
- parent::__construct();
11
- }
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/Block/Deleteorder.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Raveinfosys_Deleteorder_Block_Deleteorder extends Mage_Core_Block_Template
3
- {
4
- public function _prepareLayout()
5
- {
6
- return parent::_prepareLayout();
7
- }
8
-
9
- public function getDeleteorder()
10
- {
11
- if (!$this->hasData('deleteorder')) {
12
- $this->setData('deleteorder', Mage::registry('deleteorder'));
13
- }
14
- return $this->getData('deleteorder');
15
-
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/Model/Deleteorder.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- class Raveinfosys_Deleteorder_Model_Deleteorder extends Mage_Core_Model_Abstract
4
- {
5
- public function _construct()
6
- {
7
- parent::_construct();
8
- $this->_init('deleteorder/deleteorder');
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/Model/Mysql4/Deleteorder.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- class Raveinfosys_Deleteorder_Model_Mysql4_Deleteorder extends Mage_Core_Model_Mysql4_Abstract
4
- {
5
- public function _construct()
6
- {
7
- // Note that the deleteorder_id refers to the key field in your database table.
8
- $this->_init('deleteorder/deleteorder', 'deleteorder_id');
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/Model/Mysql4/Deleteorder/Collection.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- class Raveinfosys_Deleteorder_Model_Mysql4_Deleteorder_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
4
- {
5
- public function _construct()
6
- {
7
- parent::_construct();
8
- $this->_init('deleteorder/deleteorder');
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/Model/Status.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
-
3
- class Raveinfosys_Deleteorder_Model_Status extends Varien_Object
4
- {
5
- const STATUS_ENABLED = 1;
6
- const STATUS_DISABLED = 2;
7
-
8
- static public function getOptionArray()
9
- {
10
- return array(
11
- self::STATUS_ENABLED => Mage::helper('deleteorder')->__('Enabled'),
12
- self::STATUS_DISABLED => Mage::helper('deleteorder')->__('Disabled')
13
- );
14
- }
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/controllers/IndexController.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- class Raveinfosys_Deleteorder_IndexController extends Mage_Core_Controller_Front_Action
3
- {
4
- public function indexAction()
5
- {
6
-
7
- /*
8
- * Load an object by id
9
- * Request looking like:
10
- * http://site.com/deleteorder?id=15
11
- * or
12
- * http://site.com/deleteorder/id/15
13
- */
14
- /*
15
- $deleteorder_id = $this->getRequest()->getParam('id');
16
-
17
- if($deleteorder_id != null && $deleteorder_id != '') {
18
- $deleteorder = Mage::getModel('deleteorder/deleteorder')->load($deleteorder_id)->getData();
19
- } else {
20
- $deleteorder = null;
21
- }
22
- */
23
-
24
- /*
25
- * If no param we load a the last created item
26
- */
27
- /*
28
- if($deleteorder == null) {
29
- $resource = Mage::getSingleton('core/resource');
30
- $read= $resource->getConnection('core_read');
31
- $deleteorderTable = $resource->getTableName('deleteorder');
32
-
33
- $select = $read->select()
34
- ->from($deleteorderTable,array('deleteorder_id','title','content','status'))
35
- ->where('status',1)
36
- ->order('created_time DESC') ;
37
-
38
- $deleteorder = $read->fetchRow($select);
39
- }
40
- Mage::register('deleteorder', $deleteorder);
41
- */
42
-
43
-
44
- $this->loadLayout();
45
- $this->renderLayout();
46
- }
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Raveinfosys/Deleteorder/sql/deleteorder_setup/mysql4-install-0.1.0.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
-
5
- $installer->startSetup();
6
-
7
- $installer->run("
8
-
9
- -- DROP TABLE IF EXISTS {$this->getTable('deleteorder')};
10
- CREATE TABLE {$this->getTable('deleteorder')} (
11
- `deleteorder_id` int(11) NOT NULL auto_increment,
12
- `internal_company_id` varchar(80) NOT NULL default '',
13
- PRIMARY KEY (`deleteorder_id`)
14
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
15
- ");
16
-
17
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Raveinfosys_Deleteorder.xml CHANGED
@@ -3,7 +3,7 @@
3
  <modules>
4
  <Raveinfosys_Deleteorder>
5
  <active>true</active>
6
- <codePool>local</codePool>
7
  </Raveinfosys_Deleteorder>
8
  </modules>
9
  </config>
3
  <modules>
4
  <Raveinfosys_Deleteorder>
5
  <active>true</active>
6
+ <codePool>community</codePool>
7
  </Raveinfosys_Deleteorder>
8
  </modules>
9
  </config>
package.xml CHANGED
@@ -1,19 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Raveinfosys_Deleteorder</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension allows you to delete orders. </summary>
10
  <description>Magento doesn't allow you to delete orders. You can only mark it to cancelled but you can't delete it. This extension allows you to seamlessly delete any order. We have provided three options to delete any order. 1) option to delete any order from the order list page, 2) option to delete any order from the order page, 3) option to delete mass order from the order list page. </description>
11
- <notes>This version is properly tested on the following Magento CE versions: 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7&#xD;
12
  In this particular version we are supporting it to run on PHP V 5.4.X</notes>
13
- <authors><author><name>Rave Infosys</name><user>raveinfo</user><email>lpext@raveinfosys.com</email></author><author><name>Mayank Sharma</name><user>mayank3008</user><email>mynk.sharma@gmail.com</email></author></authors>
14
- <date>2012-08-06</date>
15
- <time>05:28:54</time>
16
- <contents><target name="magelocal"><dir name="Raveinfosys"><dir name="Deleteorder"><dir name="Block"><dir name="Adminhtml"><file name="Deleteorder.php" hash="66241fe8429b10523868a1ecbcdb3e44"/><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="9d3870026701ef1250c7cf2d50d8e5bf"/><dir name="Render"><file name="Delete.php" hash="f2b03ab25c61f1af2bf2149c72eb8405"/></dir><file name="View.php" hash="927f52f9bdee13b6a9db09fb2830f2cc"/></dir></dir></dir><file name="Deleteorder.php" hash="dc22c254cc532804d274227eea4524c6"/></dir><dir name="Helper"><file name="Data.php" hash="c169154213a43dffd8e20c11db9b4085"/></dir><dir name="Model"><file name="Deleteorder.php" hash="f175492f275a0141d9192b05b3e05284"/><dir name="Mysql4"><dir name="Deleteorder"><file name="Collection.php" hash="24637131fe79866384efd5ea9d159627"/></dir><file name="Deleteorder.php" hash="df59ff12b26c8b9fa2352f7e3be62e2c"/></dir><file name="Status.php" hash="5afe1e5c00832cbb331742854d1a1cb3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeleteorderController.php" hash="a4ae6d98146deb74c007daf7ba3863d1"/></dir><file name="IndexController.php" hash="c58aa57a138856907620ae0446077dce"/></dir><dir name="etc"><file name="config.xml" hash="1da7a12e990885aa7318ec995bad0c58"/></dir><dir name="sql"><dir name="deleteorder_setup"><file name="mysql4-install-0.1.0.php" hash="cd3d47fd247da8aedf3f61fb9943b9ed"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Raveinfosys_Deleteorder.xml" hash="286345b20bc0777c9a1d089d5ad77361"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="deleteorder.xml" hash="7d07207d7c1103b44526c9344d593354"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
- <dependencies><required><php><min>5.2.0</min><max>5.4.5</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Raveinfosys_Deleteorder</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
+ <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension allows you to delete orders. </summary>
10
  <description>Magento doesn't allow you to delete orders. You can only mark it to cancelled but you can't delete it. This extension allows you to seamlessly delete any order. We have provided three options to delete any order. 1) option to delete any order from the order list page, 2) option to delete any order from the order page, 3) option to delete mass order from the order list page. </description>
11
+ <notes>This version is properly tested on the following Magento CE versions: 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7,1.7.0.1, 1.7.0.2, 1.8, 1.8.1.0;&#xD;
12
  In this particular version we are supporting it to run on PHP V 5.4.X</notes>
13
+ <authors><author><name>Rave Infosys</name><user>raveinfo</user><email>lpext@raveinfosys.com</email></author></authors>
14
+ <date>2014-04-16</date>
15
+ <time>10:12:25</time>
16
+ <contents><target name="magecommunity"><dir name="Raveinfosys"><dir name="Deleteorder"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="9d3870026701ef1250c7cf2d50d8e5bf"/><dir name="Render"><file name="Delete.php" hash="f2b03ab25c61f1af2bf2149c72eb8405"/></dir><file name="View.php" hash="927f52f9bdee13b6a9db09fb2830f2cc"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="c169154213a43dffd8e20c11db9b4085"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeleteorderController.php" hash="f5f2c4ed5f3ce68c9233e4a967ae9ed5"/></dir></dir><dir name="etc"><file name="config.xml" hash="1da7a12e990885aa7318ec995bad0c58"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Raveinfosys_Deleteorder.xml" hash="1d73a901977f08e90563dd8c5c8adb64"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="deleteorder.xml" hash="7d07207d7c1103b44526c9344d593354"/></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
+ <dependencies><required><php><min>5.2.0</min><max>5.4.27</max></php></required></dependencies>
19
  </package>