padoo_deleteorder - Version 1.0.0

Version Notes

This is the first release of this product.

Download this release

Release Info

Developer Padoosoft
Extension padoo_deleteorder
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/local/Padoo/Deleteorder/Block/Adminhtml/Sales/Order/Grid.php ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Padoo_Deleteorder_Block_Adminhtml_Sales_Order_Grid extends Mage_Adminhtml_Block_Widget_Grid
3
+ {
4
+ public function __construct()
5
+ {
6
+ parent::__construct();
7
+ $this->setId('sales_order_grid');
8
+ $this->setUseAjax(true);
9
+ $this->setDefaultSort('created_at');
10
+ $this->setDefaultDir('DESC');
11
+ $this->setSaveParametersInSession(true);
12
+ }
13
+
14
+ /**
15
+ * Retrieve collection class
16
+ *
17
+ * @return string
18
+ */
19
+ protected function _getCollectionClass()
20
+ {
21
+ return 'sales/order_grid_collection';
22
+ }
23
+
24
+ protected function _prepareCollection()
25
+ {
26
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
27
+ $this->setCollection($collection);
28
+ return parent::_prepareCollection();
29
+ }
30
+
31
+ protected function _prepareColumns()
32
+ {
33
+
34
+ $this->addColumn('real_order_id', array(
35
+ 'header'=> Mage::helper('sales')->__('Order #'),
36
+ 'width' => '80px',
37
+ 'type' => 'text',
38
+ 'index' => 'increment_id',
39
+ ));
40
+
41
+ if (!Mage::app()->isSingleStoreMode()) {
42
+ $this->addColumn('store_id', array(
43
+ 'header' => Mage::helper('sales')->__('Purchased From (Store)'),
44
+ 'index' => 'store_id',
45
+ 'type' => 'store',
46
+ 'store_view'=> true,
47
+ 'display_deleted' => true,
48
+ ));
49
+ }
50
+
51
+ $this->addColumn('created_at', array(
52
+ 'header' => Mage::helper('sales')->__('Purchased On'),
53
+ 'index' => 'created_at',
54
+ 'type' => 'datetime',
55
+ 'width' => '100px',
56
+ ));
57
+
58
+ $this->addColumn('billing_name', array(
59
+ 'header' => Mage::helper('sales')->__('Bill to Name'),
60
+ 'index' => 'billing_name',
61
+ ));
62
+
63
+ $this->addColumn('shipping_name', array(
64
+ 'header' => Mage::helper('sales')->__('Ship to Name'),
65
+ 'index' => 'shipping_name',
66
+ ));
67
+
68
+ $this->addColumn('base_grand_total', array(
69
+ 'header' => Mage::helper('sales')->__('G.T. (Base)'),
70
+ 'index' => 'base_grand_total',
71
+ 'type' => 'currency',
72
+ 'currency' => 'base_currency_code',
73
+ ));
74
+
75
+ $this->addColumn('grand_total', array(
76
+ 'header' => Mage::helper('sales')->__('G.T. (Purchased)'),
77
+ 'index' => 'grand_total',
78
+ 'type' => 'currency',
79
+ 'currency' => 'order_currency_code',
80
+ ));
81
+
82
+ $this->addColumn('status', array(
83
+ 'header' => Mage::helper('sales')->__('Status'),
84
+ 'index' => 'status',
85
+ 'type' => 'options',
86
+ 'width' => '70px',
87
+ 'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
88
+ ));
89
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view') && Mage::getStoreConfig('deleteorder/general/enabled')) {
90
+ $this->addColumn('action',
91
+ array(
92
+ 'header' => Mage::helper('sales')->__('Action'),
93
+ 'width' => '100px',
94
+ 'type' => 'action',
95
+ 'getter' => 'getId',
96
+ 'renderer' => 'deleteorder/adminhtml_sales_order_render_delete',
97
+ 'filter' => false,
98
+ 'sortable' => false,
99
+ 'index' => 'stores',
100
+ 'is_system' => true,
101
+ ));
102
+ }
103
+ $this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
104
+
105
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
106
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));
107
+
108
+ return parent::_prepareColumns();
109
+ }
110
+
111
+ protected function _prepareMassaction()
112
+ {
113
+ $this->setMassactionIdField('entity_id');
114
+ $this->getMassactionBlock()->setFormFieldName('order_ids');
115
+ $this->getMassactionBlock()->setUseSelectAll(false);
116
+
117
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) {
118
+ $this->getMassactionBlock()->addItem('cancel_order', array(
119
+ 'label'=> Mage::helper('sales')->__('Cancel'),
120
+ 'url' => $this->getUrl('*/sales_order/massCancel'),
121
+ ));
122
+ }
123
+
124
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) {
125
+ $this->getMassactionBlock()->addItem('hold_order', array(
126
+ 'label'=> Mage::helper('sales')->__('Hold'),
127
+ 'url' => $this->getUrl('*/sales_order/massHold'),
128
+ ));
129
+ }
130
+
131
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) {
132
+ $this->getMassactionBlock()->addItem('unhold_order', array(
133
+ 'label'=> Mage::helper('sales')->__('Unhold'),
134
+ 'url' => $this->getUrl('*/sales_order/massUnhold'),
135
+ ));
136
+ }
137
+
138
+ $this->getMassactionBlock()->addItem('pdfinvoices_order', array(
139
+ 'label'=> Mage::helper('sales')->__('Print Invoices'),
140
+ 'url' => $this->getUrl('*/sales_order/pdfinvoices'),
141
+ ));
142
+
143
+ $this->getMassactionBlock()->addItem('pdfshipments_order', array(
144
+ 'label'=> Mage::helper('sales')->__('Print Packingslips'),
145
+ 'url' => $this->getUrl('*/sales_order/pdfshipments'),
146
+ ));
147
+
148
+ $this->getMassactionBlock()->addItem('pdfcreditmemos_order', array(
149
+ 'label'=> Mage::helper('sales')->__('Print Credit Memos'),
150
+ 'url' => $this->getUrl('*/sales_order/pdfcreditmemos'),
151
+ ));
152
+
153
+ $this->getMassactionBlock()->addItem('pdfdocs_order', array(
154
+ 'label'=> Mage::helper('sales')->__('Print All'),
155
+ 'url' => $this->getUrl('*/sales_order/pdfdocs'),
156
+ ));
157
+
158
+ $this->getMassactionBlock()->addItem('print_shipping_label', array(
159
+ 'label'=> Mage::helper('sales')->__('Print Shipping Labels'),
160
+ 'url' => $this->getUrl('*/sales_order_shipment/massPrintShippingLabel'),
161
+ ));
162
+ if (Mage::getStoreConfig('deleteorder/general/enabled')) {
163
+ $this->getMassactionBlock()->addItem('delete_order', array(
164
+ 'label'=> Mage::helper('sales')->__('Delete Order'),
165
+ 'url' => $this->getUrl('*/deleteorder/massDelete'),
166
+ 'confirm' => Mage::helper('sales')->__('Are you sure you want to delete order?')
167
+ ));
168
+ }
169
+ return $this;
170
+ }
171
+ public function getRowUrl($row)
172
+ {
173
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
174
+ return $this->getUrl('*/sales_order/view', array('order_id' => $row->getId()));
175
+ }
176
+ return false;
177
+ }
178
+
179
+ public function getGridUrl()
180
+ {
181
+ return $this->getUrl('*/*/grid', array('_current'=>true));
182
+ }
183
+
184
+ }
185
+ ?>
app/code/local/Padoo/Deleteorder/Block/Adminhtml/Sales/Order/Render/Delete.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Padoo_Deleteorder_Block_Adminhtml_Sales_Order_Render_Delete extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
3
+ {
4
+ public function render(Varien_Object $row)
5
+ {
6
+ $getData = $row->getData();
7
+ $message = Mage::helper('sales')->__('Are you sure you want to delete this order?');
8
+ $orderID = $getData['entity_id'];
9
+ $view = $this->getUrl('*/sales_order/view',array('order_id' => $orderID));
10
+ $delete = $this->getUrl('*/deleteorder/delete',array('order_id' => $orderID));
11
+ $link = '<a href="'.$view.'">View</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="deleteConfirm(\''.$message.'\', \'' . $delete . '\')">Delete</a>';
12
+ return $link;
13
+ }
14
+
15
+
16
+ }
17
+
18
+ ?>
app/code/local/Padoo/Deleteorder/Block/Adminhtml/Sales/Order/View.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Padoo_Deleteorder_Block_Adminhtml_Sales_Order_View extends Mage_Adminhtml_Block_Sales_Order_View {
3
+ public function __construct() {
4
+
5
+ parent::__construct();
6
+ if (Mage::getStoreConfig('deleteorder/general/enabled')) {
7
+ $message = Mage::helper('sales')->__('Are you sure you want to delete this order?');
8
+ $this->_addButton('button_id', array(
9
+ 'label' => Mage::helper('Sales')->__('Delete Order'),
10
+ 'onclick' => 'deleteConfirm(\''.$message.'\', \'' . $this->getDeleteUrl() . '\')',
11
+ 'class' => 'go'
12
+ ), 0, 100, 'header', 'header');
13
+ }
14
+ }
15
+
16
+ public function getDeleteUrl()
17
+ {
18
+ return $this->getUrl('*/deleteorder/delete', array('_current'=>true));
19
+ }
20
+ }
21
+ ?>
app/code/local/Padoo/Deleteorder/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Padoo_Deleteorder_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
+ }
app/code/local/Padoo/Deleteorder/controllers/Adminhtml/DeleteorderController.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Padoo_Deleteorder_Adminhtml_DeleteorderController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+
6
+ protected function _initAction() {
7
+ $this->loadLayout()
8
+ ->_setActiveMenu('deleteorder/items')
9
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
10
+
11
+ return $this;
12
+ }
13
+ protected function _initOrder()
14
+ {
15
+ $id = $this->getRequest()->getParam('order_id');
16
+ $order = Mage::getModel('sales/order')->load($id);
17
+
18
+ if (!$order->getId()) {
19
+ $this->_getSession()->addError($this->__('This order no longer exists.'));
20
+ $this->_redirect('*/*/');
21
+ $this->setFlag('', self::FLAG_NO_DISPATCH, true);
22
+ return false;
23
+ }
24
+ Mage::register('sales_order', $order);
25
+ Mage::register('current_order', $order);
26
+ return $order;
27
+ }
28
+ public function indexAction() {
29
+ $this->_initAction()
30
+ ->renderLayout();
31
+ }
32
+ public function deleteAction() {
33
+ if($order = $this->_initOrder()) {
34
+ try {
35
+ $order->delete();
36
+ if($this->_remove($this->getRequest()->getParam('order_id'))){
37
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Order was successfully deleted'));
38
+ $this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/index'));
39
+ }
40
+ } catch (Exception $e) {
41
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
42
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('order_ids')));
43
+ }
44
+ }
45
+ $this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/index'));
46
+ }
47
+ public function massDeleteAction() {
48
+ $deleteorderIds = $this->getRequest()->getParam('order_ids');
49
+ if(!is_array($deleteorderIds)) {
50
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
51
+ } else {
52
+ try {
53
+ foreach ($deleteorderIds as $deleteorderId) {
54
+ Mage::getModel('sales/order')->load($deleteorderId)->delete()->unsetAll();
55
+ $this->_remove($deleteorderId);
56
+ }
57
+ Mage::getSingleton('adminhtml/session')->addSuccess(
58
+ Mage::helper('adminhtml')->__(
59
+ 'Total of %d record(s) were successfully deleted', count($deleteorderIds)
60
+ )
61
+ );
62
+ } catch (Exception $e) {
63
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
64
+ }
65
+ }
66
+ $this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/index'));
67
+ }
68
+
69
+ public function _remove($order_id){
70
+ $resource = Mage::getSingleton('core/resource');
71
+ $delete = $resource->getConnection('core_read');
72
+ $order_table = $resource->getTableName('sales_flat_order_grid');
73
+ $invoice_table = $resource->getTableName('sales_flat_invoice_grid');
74
+ $shipment_table = $resource->getTableName('sales_flat_shipment_grid');
75
+ $creditmemo_table = $resource->getTableName('sales_flat_creditmemo_grid');
76
+ $sql = "DELETE FROM " . $order_table . " WHERE entity_id = " . $order_id . ";";
77
+ $delete->query($sql);
78
+ $sql = "DELETE FROM " . $invoice_table . " WHERE order_id = " . $order_id . ";";
79
+ $delete->query($sql);
80
+ $sql = "DELETE FROM " . $shipment_table . " WHERE order_id = " . $order_id . ";";
81
+ $delete->query($sql);
82
+ $sql = "DELETE FROM " . $creditmemo_table . " WHERE order_id = " . $order_id . ";";
83
+ $delete->query($sql);
84
+
85
+ return true;
86
+ }
87
+
88
+ }
app/code/local/Padoo/Deleteorder/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <deleteorder translate="title" module="padoo_deleteorder">
12
+ <title>Padoosoft delete order</title>
13
+ <sort_order>10</sort_order>
14
+ </deleteorder>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/local/Padoo/Deleteorder/etc/config.xml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Padoo_Deleteorder>
5
+ <version>1.0.0</version>
6
+ </Padoo_Deleteorder>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <deleteorder>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Padoo_Deleteorder</module>
14
+ <frontName>deleteorder</frontName>
15
+ </args>
16
+ </deleteorder>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <deleteorder>
21
+ <file>deleteorder.xml</file>
22
+ </deleteorder>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <adminhtml>
29
+ <args>
30
+ <modules>
31
+ <padoo_deleteorder before="Mage_Adminhtml">Padoo_Deleteorder_Adminhtml</padoo_deleteorder>
32
+ </modules>
33
+ </args>
34
+ </adminhtml>
35
+ </routers>
36
+ </admin>
37
+ <adminhtml>
38
+ <acl>
39
+ <resources>
40
+ <all>
41
+ <title>Allow Everything</title>
42
+ </all>
43
+ <admin>
44
+ <children>
45
+ <Padoo_Deleteorder>
46
+ <title>Deleteorder Module</title>
47
+ <sort_order>10</sort_order>
48
+ </Padoo_Deleteorder>
49
+ </children>
50
+ </admin>
51
+ </resources>
52
+ </acl>
53
+ <layout>
54
+ <updates>
55
+ <padoo_deleteorder>
56
+ <file>deleteorder.xml</file>
57
+ </padoo_deleteorder>
58
+ </updates>
59
+ </layout>
60
+ </adminhtml>
61
+ <global>
62
+ <models>
63
+ <deleteorder>
64
+ <class>Padoo_Deleteorder_Model</class>
65
+ <resourceModel>deleteorder_mysql4</resourceModel>
66
+ </deleteorder>
67
+ <deleteorder_mysql4>
68
+ <class>Padoo_Deleteorder_Model_Mysql4</class>
69
+ <entities>
70
+ <deleteorder>
71
+ <table>deleteorder</table>
72
+ </deleteorder>
73
+ </entities>
74
+ </deleteorder_mysql4>
75
+ </models>
76
+ <resources>
77
+ <deleteorder_setup>
78
+ <setup>
79
+ <module>Padoo_Deleteorder</module>
80
+ </setup>
81
+ <connection>
82
+ <use>core_setup</use>
83
+ </connection>
84
+ </deleteorder_setup>
85
+ <deleteorder_write>
86
+ <connection>
87
+ <use>core_write</use>
88
+ </connection>
89
+ </deleteorder_write>
90
+ <deleteorder_read>
91
+ <connection>
92
+ <use>core_read</use>
93
+ </connection>
94
+ </deleteorder_read>
95
+ </resources>
96
+ <blocks>
97
+ <adminhtml>
98
+ <rewrite>
99
+ <sales_order_grid>Padoo_Deleteorder_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
100
+ </rewrite>
101
+ <rewrite>
102
+ <sales_order_view>Padoo_Deleteorder_Block_Adminhtml_Sales_Order_View</sales_order_view>
103
+ </rewrite>
104
+ </adminhtml>
105
+ <deleteorder>
106
+ <class>Padoo_Deleteorder_Block</class>
107
+ </deleteorder>
108
+ </blocks>
109
+ <helpers>
110
+ <padoo_deleteorder>
111
+ <class>Padoo_Deleteorder_Helper</class>
112
+ </padoo_deleteorder>
113
+ </helpers>
114
+ </global>
115
+ <default>
116
+ <deleteorder>
117
+ <general>
118
+ <enabled>1</enabled>
119
+ </general>
120
+ </deleteorder>
121
+ </default>
122
+ </config>
app/code/local/Padoo/Deleteorder/etc/system.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <padoo_templates translate="label" module="padoo_deleteorder">
5
+ <label>Padoosoft extension</label>
6
+ <!-- it relation to diplaying position on left menu -->
7
+ <sort_order>198</sort_order>
8
+ </padoo_templates>
9
+ </tabs>
10
+ <sections>
11
+ <deleteorder translate="label" module="padoo_deleteorder">
12
+ <label>Delete order</label>
13
+ <tab>padoo_templates</tab>
14
+ <frontend_type>text</frontend_type>
15
+ <sort_order>1</sort_order>
16
+ <show_in_default>1</show_in_default>
17
+ <show_in_website>0</show_in_website>
18
+ <show_in_store>0</show_in_store>
19
+ <groups>
20
+ <general translate="label" module="padoo_deleteorder">
21
+ <label>General</label>
22
+ <sort_order>10</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>0</show_in_website>
25
+ <show_in_store>0</show_in_store>
26
+ <fields>
27
+ <enabled translate="label">
28
+ <label>Enable</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>0</sort_order>
32
+ <show_in_default>1</show_in_default>
33
+ <show_in_website>1</show_in_website>
34
+ <show_in_store>1</show_in_store>
35
+ </enabled>
36
+ </fields>
37
+ </general>
38
+ </groups>
39
+ </deleteorder>
40
+ </sections>
41
+ </config>
app/etc/modules/Padoo_Deleteorder.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Padoo_Deleteorder>
5
+ <active>true</active>
6
+ <codePool>local</codePool>
7
+ </Padoo_Deleteorder>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>padoo_deleteorder</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/gpl-license.php">GNU General Public License (GPL)</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Allow delete order and bulk orders and related invoices, shipments.</summary>
10
+ <description>&lt;div&gt;&#xD;
11
+ &lt;p&gt;Default Magento dosen't support to allow user delete orders. But in fact, We need remove orders in some case such as useless orders that us made during testing stage or pending or cancel order. By install and use the extension you can easy and fast delete orders in Orders List, Order Detail page and mass delete orders on List Order page.&lt;/p&gt;&#xD;
12
+ &lt;p&gt;Unlike as tips various given on forum to delete order. You need programming knowledge and can make out dangerous error for your database. The extension will help you delete order and related invoice without database error and knowledge programming.&lt;/p&gt;&#xD;
13
+ &lt;/div&gt;&#xD;
14
+ &lt;div&gt;&#xD;
15
+ &lt;h3&gt;Features and benefits&lt;/h3&gt;&#xD;
16
+ &lt;ul&gt;&#xD;
17
+ &lt;li&gt;100% opensource&lt;/li&gt;&#xD;
18
+ &lt;li&gt;No database knowledge needed&lt;/li&gt;&#xD;
19
+ &lt;li&gt;Easy to install&lt;/li&gt;&#xD;
20
+ &lt;li&gt;No damage to the database &amp;quot;keys&amp;quot;&lt;/li&gt;&#xD;
21
+ &lt;li&gt;Doesn&#x2019;t override core Magento ( core class or core template)&lt;/li&gt;&#xD;
22
+ &lt;li&gt;Works perfectly with popular browsers including Firefox, Chrome, IE and Safari&lt;/li&gt;&#xD;
23
+ &lt;li&gt;Friendly and easy to configurable&lt;/li&gt;&#xD;
24
+ &lt;li&gt;Compatibility: Magento CE 1.4, 1.5, 1.6, 1.7, 1.8, 1.9&lt;/li&gt;&#xD;
25
+ &lt;/ul&gt;&#xD;
26
+ &lt;/div&gt;&#xD;
27
+ &lt;div&gt;&#xD;
28
+ &lt;h3&gt;How to use the our Delete Order&lt;/h3&gt;&#xD;
29
+ &lt;ol&gt;&#xD;
30
+ &lt;li&gt;Install via Magentconnect or get it from our site Mage-addons.com&lt;/li&gt;&#xD;
31
+ &lt;li&gt;Set "Yes" on System &gt; Configuration &gt; Delete Order &gt; General&lt;img alt="" src="http://www.mage-addons.com/media/wysiwyg/559.png" /&gt;&lt;/li&gt;&#xD;
32
+ &lt;li&gt;And you can specify order by click on delete link on Order list or Mass delete orders by choice &#x201C;Delete orders&#x201D; option . And you also delete order with &#x201C;Delete Order&#x201D; button on Order detail&#xD;
33
+ &lt;ol&gt;&#xD;
34
+ &lt;li /&gt;Delete any order from the order page&lt;img alt="" src="http://www.mage-addons.com/media/wysiwyg/561.png" /&gt;&lt;/li&gt;&#xD;
35
+ &lt;li&gt;Delete any order from the order list page&lt;/li&gt;&#xD;
36
+ &lt;li&gt;Delete mass order from the order list page&lt;img alt="" src="http://www.mage-addons.com/media/wysiwyg/560.png" /&gt;&lt;/li&gt;&#xD;
37
+ &lt;/ol&gt;&#xD;
38
+ &lt;/li&gt;&#xD;
39
+ &lt;/ol&gt;&#xD;
40
+ &lt;/div&gt;&#xD;
41
+ &lt;div&gt;&#xD;
42
+ &lt;h3&gt;How to disable the extension&lt;/h3&gt;&#xD;
43
+ &lt;p&gt;Set &amp;quot;No&amp;quot; on System &amp;gt; Configuration&amp;gt; Delete Order &amp;gt; General&lt;/p&gt;&#xD;
44
+ &lt;p&gt;You also disable extension by open &amp;quot;app/etc/modules/Padoo_Deleteorder&amp;quot; and change xml to &amp;quot;true&amp;quot; to &amp;quot;no&amp;quot;&lt;/p&gt;&#xD;
45
+ &lt;/div&gt;</description>
46
+ <notes>This is the first release of this product.</notes>
47
+ <authors><author><name>Padoosoft</name><user>MageAddons82</user><email>stdspace@gmail.com</email></author></authors>
48
+ <date>2016-03-23</date>
49
+ <time>06:52:53</time>
50
+ <contents><target name="magelocal"><dir name="Padoo"><dir name="Deleteorder"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="b0eb404599a6cabbc12a87c5bb445655"/><dir name="Render"><file name="Delete.php" hash="aaee00add580dd661ee84b590c88290c"/></dir><file name="View.php" hash="65f21955a39320302cb6ea8c64e5ccc2"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="cb2c81463f926ffb6956f8b9255037d1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeleteorderController.php" hash="c92b6bc303c16d24fb0abf6532352d26"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c6251aaf0ce50bf90366778f7b8fff75"/><file name="config.xml" hash="6c9b44e0bc473cb453d3359c84d187a5"/><file name="system.xml" hash="41cba6638f9541462c6f9dbaf9fbdad0"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Padoo_Deleteorder.xml" hash="6b982ffddc0a4de5f62e86f96e68807a"/></dir></target></contents>
51
+ <compatible/>
52
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
53
+ </package>