Wyomind_OrdersEraser - Version 4.0.3

Version Notes

test

Download this release

Release Info

Developer Wyomind
Extension Wyomind_OrdersEraser
Version 4.0.3
Comparing to
See all releases


Code changes from version 4.0.2 to 4.0.3

app/code/community/Wyomind/Orderseraser/Block/Order/Grid.php DELETED
@@ -1 +0,0 @@
1
- <?php
2
  public function __construct() {
3
  parent::__construct();
4
  }
5
 
6
  protected function _prepareCollection() {
7
 
8
  $actions = array();
9
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
10
  $actions[] = array(
11
  'caption' => Mage::helper('sales')->__('View'),
12
  'url' => array('base' => '*/sales_order/view'),
13
  'field' => 'order_id'
14
  );
15
  }
16
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
17
  $actions[] = array(
18
  'caption' => Mage::helper('sales')->__('Delete'),
19
  'url' => array('base' => 'orderseraser/adminhtml_orderseraser/delete'),
20
  'confirm' => Mage::helper('sales')->__('Are your sure your want to delete this order and to erase all linked data ? '),
21
  'field' => 'order_id'
22
  );
23
  }
24
  $this->addColumn('action', array(
25
  'header' => Mage::helper('sales')->__('Action'),
26
  'width' => '50px',
27
  'type' => 'action',
28
  'getter' => 'getId',
29
  'actions' => $actions,
30
  'filter' => false,
31
  'sortable' => false,
32
  'index' => 'stores',
33
  'is_system' => true,
34
  ));
35
 
36
  return parent::_prepareCollection();
37
  }
38
 
39
  protected function _prepareColumns() {
40
  return parent::_prepareColumns();
41
  }
42
  protected function _prepareMassaction() {
43
 
44
  parent::_prepareMassaction();
45
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
46
  $this->getMassactionBlock()->addItem('delete_order', array(
47
  'label' => Mage::helper('sales')->__('Delete'),
48
  'url' => $this->getUrl('orderseraser/adminhtml_orderseraser/massdelete'),
49
  ));
50
  }
51
  return $this;
52
  }
 
0
  public function __construct() {
1
  parent::__construct();
2
  }
3
 
4
  protected function _prepareCollection() {
5
 
6
  $actions = array();
7
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
8
  $actions[] = array(
9
  'caption' => Mage::helper('sales')->__('View'),
10
  'url' => array('base' => '*/sales_order/view'),
11
  'field' => 'order_id'
12
  );
13
  }
14
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
15
  $actions[] = array(
16
  'caption' => Mage::helper('sales')->__('Delete'),
17
  'url' => array('base' => 'orderseraser/adminhtml_orderseraser/delete'),
18
  'confirm' => Mage::helper('sales')->__('Are your sure your want to delete this order and to erase all linked data ? '),
19
  'field' => 'order_id'
20
  );
21
  }
22
  $this->addColumn('action', array(
23
  'header' => Mage::helper('sales')->__('Action'),
24
  'width' => '50px',
25
  'type' => 'action',
26
  'getter' => 'getId',
27
  'actions' => $actions,
28
  'filter' => false,
29
  'sortable' => false,
30
  'index' => 'stores',
31
  'is_system' => true,
32
  ));
33
 
34
  return parent::_prepareCollection();
35
  }
36
 
37
  protected function _prepareColumns() {
38
  return parent::_prepareColumns();
39
  }
40
  protected function _prepareMassaction() {
41
 
42
  parent::_prepareMassaction();
43
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
44
  $this->getMassactionBlock()->addItem('delete_order', array(
45
  'label' => Mage::helper('sales')->__('Delete'),
46
  'url' => $this->getUrl('orderseraser/adminhtml_orderseraser/massdelete'),
47
  ));
48
  }
49
  return $this;
50
  }
app/code/community/Wyomind/Orderseraser/Model/Observer.php CHANGED
@@ -14,7 +14,7 @@ class Wyomind_Orderseraser_Model_Observer {
14
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
15
  $actions[] = array(
16
  'caption' => Mage::helper('sales')->__('Delete'),
17
- 'url' => array('base' => 'orderseraser/adminhtml_orderseraser/delete'),
18
  'confirm' => Mage::helper('sales')->__('Are your sure your want to delete this order and to erase all linked data ? '),
19
  'field' => 'order_id'
20
  );
@@ -47,7 +47,7 @@ class Wyomind_Orderseraser_Model_Observer {
47
 
48
  $block->addItem('delete_order', array(
49
  'label' => Mage::helper('sales')->__('Delete'),
50
- 'url' => $block->getUrl('orderseraser/adminhtml_orderseraser/massdelete'),
51
  ));
52
  }
53
  }
14
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) {
15
  $actions[] = array(
16
  'caption' => Mage::helper('sales')->__('Delete'),
17
+ 'url' => array('base' => '*/orderseraser/delete'),
18
  'confirm' => Mage::helper('sales')->__('Are your sure your want to delete this order and to erase all linked data ? '),
19
  'field' => 'order_id'
20
  );
47
 
48
  $block->addItem('delete_order', array(
49
  'label' => Mage::helper('sales')->__('Delete'),
50
+ 'url' => $block->getUrl('*/orderseraser/massdelete'),
51
  ));
52
  }
53
  }
app/code/community/Wyomind/Orderseraser/etc/config.xml CHANGED
@@ -4,7 +4,7 @@
4
  <config>
5
  <modules>
6
  <Wyomind_Orderseraser>
7
- <version>4.0.0</version>
8
  </Wyomind_Orderseraser>
9
  </modules>
10
  <default>
@@ -16,13 +16,14 @@
16
  </default>
17
  <admin>
18
  <routers>
19
- <orderseraser>
20
- <use>admin</use>
21
  <args>
22
- <module>Wyomind_Orderseraser</module>
23
- <frontName>orderseraser</frontName>
 
24
  </args>
25
- </orderseraser>
26
  </routers>
27
  </admin>
28
  <adminhtml>
@@ -90,13 +91,7 @@
90
  <class>Wyomind_Orderseraser_Model</class>
91
  </orderseraser>
92
  </models>
93
- <blocks>
94
- <adminhtml>
95
- <rewrite>
96
- <!--<sales_order_grid>Wyomind_Orderseraser_Block_Order_Grid</sales_order_grid>-->
97
- </rewrite>
98
- </adminhtml>
99
- </blocks>
100
  <resources>
101
  <orderseraser_write>
102
  <connection>
4
  <config>
5
  <modules>
6
  <Wyomind_Orderseraser>
7
+ <version>4.0.3</version>
8
  </Wyomind_Orderseraser>
9
  </modules>
10
  <default>
16
  </default>
17
  <admin>
18
  <routers>
19
+
20
+ <adminhtml>
21
  <args>
22
+ <modules>
23
+ <Wyomind_Orderseraser after="Mage_Adminhtml">Wyomind_Orderseraser_Adminhtml</Wyomind_Orderseraser>
24
+ </modules>
25
  </args>
26
+ </adminhtml>
27
  </routers>
28
  </admin>
29
  <adminhtml>
91
  <class>Wyomind_Orderseraser_Model</class>
92
  </orderseraser>
93
  </models>
94
+
 
 
 
 
 
 
95
  <resources>
96
  <orderseraser_write>
97
  <connection>
package.xml CHANGED
@@ -1,18 +1,42 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wyomind_OrdersEraser</name>
4
- <version>4.0.2</version>
5
  <stability>stable</stability>
6
- <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Orders eraser allows to simply clean your sales database by deleting any useless orders and linked invoices and/or shipping in once.</summary>
10
- <description>Orders eraser allows to simply clean your sales database by deleting any useless orders and linked invoices and/or shipping in once.</description>
11
- <notes>none</notes>
12
- <authors><author><name>Wyomind</name><user>auto-converted</user><email>contact@wyomind.com</email></author></authors>
13
- <date>2013-02-28</date>
14
- <time>10:04:42</time>
15
- <contents><target name="magecommunity"><dir name="Wyomind"><dir name="Orderseraser"><dir name="Block"><dir name="Order"><file name="Grid.php" hash="d61585596941f1360b6668185415617f"/></dir></dir><dir name="Model"><file name="Observer.php" hash="fe0857376834be4a0c2084b1303f3140"/><file name="Orderseraser.php" hash="e526e08d4b600653aa72e37000ff13e3"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="OrderseraserController.php" hash="fb9ec155f7e795700d43a43548ebfc77"/></dir></dir><dir name="etc"><file name="config.xml" hash="cfe48ca9d090cd38e6a4dbc3b949d104"/><file name="system.xml" hash="8d37d12b5d8c5673eff53db06569ae8d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wyomind_Orderseraser.xml" hash="21f24202ef69e71be030f0ebd62ab7f2"/></dir></target></contents>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  <compatible/>
17
- <dependencies/>
 
 
 
 
 
 
 
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wyomind_OrdersEraser</name>
4
+ <version>4.0.3</version>
5
  <stability>stable</stability>
6
+ <license>Commercial</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Wyomind Orderseraser extension</summary>
10
+ <description>Wyomind Orderseraser extension</description>
11
+ <notes>test</notes>
12
+ <authors>
13
+ <author>
14
+ <name>Wyomind</name>
15
+ <user>Orderseraser</user>
16
+ <email>contact@wyomind.com</email>
17
+ </author>
18
+ </authors>
19
+ <date>2015-10-28</date>
20
+ <time>14:29:56</time>
21
+ <contents>
22
+ <target name="mage">
23
+ <dir name="Wyomind">
24
+ <file name="Orderseraser" hash=""/>
25
+ </dir>
26
+ </target>
27
+ <target name="mageetc">
28
+ <dir name="modules">
29
+ <file name="Wyomind_Orderseraser.xml" hash="21f24202ef69e71be030f0ebd62ab7f2"/>
30
+ </dir>
31
+ </target>
32
+ </contents>
33
  <compatible/>
34
+ <dependencies>
35
+ <required>
36
+ <php>
37
+ <min>5.0.0</min>
38
+ <max>6.0.0</max>
39
+ </php>
40
+ </required>
41
+ </dependencies>
42
  </package>