Version Notes
This is a stable version.
Download this release
Release Info
Developer | pureimagination |
Extension | PI_Removeallorder |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order.php +65 -0
- app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order/Grid.php +186 -0
- app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order/Render/Delete.php +18 -0
- app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order/View.php +19 -0
- app/code/community/PI/Removeallorder/controllers/Adminhtml/RemoveallorderController.php +83 -0
- app/code/community/PI/Removeallorder/etc/config.xml +35 -0
- app/etc/modules/PI_Removeallorder.xml +9 -0
- package.xml +18 -0
app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category Mage
|
22 |
+
* @package Mage_Adminhtml
|
23 |
+
* @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Adminhtml sales orders block
|
29 |
+
*
|
30 |
+
* @category Mage
|
31 |
+
* @package Mage_Adminhtml
|
32 |
+
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
+
*/
|
34 |
+
|
35 |
+
class PI_Removeallorder_Block_Adminhtml_Sales_Order extends Mage_Adminhtml_Block_Sales_Order
|
36 |
+
{
|
37 |
+
public function __construct()
|
38 |
+
{
|
39 |
+
$this->_controller = 'sales_order';
|
40 |
+
$this->_headerText = Mage::helper('sales')->__('Orders');
|
41 |
+
$this->_addButtonLabel = Mage::helper('sales')->__('Create New Order');
|
42 |
+
|
43 |
+
|
44 |
+
/* ----- Add button for removing all order --------------------*/
|
45 |
+
|
46 |
+
$this->_addButton('removeall', array(
|
47 |
+
'label' => Mage::helper('adminhtml')->__('Remove all order'),
|
48 |
+
'onclick' => "confirmSetLocation('Are you sure you want to remove all order?', '".$this->getUrl('removeallorder/adminhtml_removeallorder/index')."')",
|
49 |
+
'class' => 'none',
|
50 |
+
), -100);
|
51 |
+
/*-------------end functionality for removing all order----------*/
|
52 |
+
|
53 |
+
|
54 |
+
parent::__construct();
|
55 |
+
if (!Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/create')) {
|
56 |
+
$this->_removeButton('add');
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
public function getCreateUrl()
|
61 |
+
{
|
62 |
+
return $this->getUrl('*/sales_order_create/start');
|
63 |
+
}
|
64 |
+
|
65 |
+
}
|
app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order/Grid.php
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class PI_Removeallorder_Block_Adminhtml_Sales_Order_Grid extends Mage_Adminhtml_Block_Sales_Order_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 |
+
|
90 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
91 |
+
$this->addColumn('action',
|
92 |
+
array(
|
93 |
+
'header' => Mage::helper('sales')->__('Action'),
|
94 |
+
'width' => '100px',
|
95 |
+
'type' => 'action',
|
96 |
+
'getter' => 'getId',
|
97 |
+
'renderer' => 'PI_Removeallorder_Block_Adminhtml_Sales_Order_Render_Delete',
|
98 |
+
'filter' => false,
|
99 |
+
'sortable' => false,
|
100 |
+
'index' => 'stores',
|
101 |
+
'is_system' => true,
|
102 |
+
));
|
103 |
+
}
|
104 |
+
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
|
105 |
+
|
106 |
+
$this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
|
107 |
+
$this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));
|
108 |
+
|
109 |
+
//return parent::_prepareColumns();
|
110 |
+
}
|
111 |
+
|
112 |
+
protected function _prepareMassaction()
|
113 |
+
{
|
114 |
+
$this->setMassactionIdField('entity_id');
|
115 |
+
$this->getMassactionBlock()->setFormFieldName('order_ids');
|
116 |
+
$this->getMassactionBlock()->setUseSelectAll(false);
|
117 |
+
|
118 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) {
|
119 |
+
$this->getMassactionBlock()->addItem('cancel_order', array(
|
120 |
+
'label'=> Mage::helper('sales')->__('Cancel'),
|
121 |
+
'url' => $this->getUrl('*/sales_order/massCancel'),
|
122 |
+
));
|
123 |
+
}
|
124 |
+
|
125 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) {
|
126 |
+
$this->getMassactionBlock()->addItem('hold_order', array(
|
127 |
+
'label'=> Mage::helper('sales')->__('Hold'),
|
128 |
+
'url' => $this->getUrl('*/sales_order/massHold'),
|
129 |
+
));
|
130 |
+
}
|
131 |
+
|
132 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) {
|
133 |
+
$this->getMassactionBlock()->addItem('unhold_order', array(
|
134 |
+
'label'=> Mage::helper('sales')->__('Unhold'),
|
135 |
+
'url' => $this->getUrl('*/sales_order/massUnhold'),
|
136 |
+
));
|
137 |
+
}
|
138 |
+
|
139 |
+
$this->getMassactionBlock()->addItem('pdfinvoices_order', array(
|
140 |
+
'label'=> Mage::helper('sales')->__('Print Invoices'),
|
141 |
+
'url' => $this->getUrl('*/sales_order/pdfinvoices'),
|
142 |
+
));
|
143 |
+
|
144 |
+
$this->getMassactionBlock()->addItem('pdfshipments_order', array(
|
145 |
+
'label'=> Mage::helper('sales')->__('Print Packingslips'),
|
146 |
+
'url' => $this->getUrl('*/sales_order/pdfshipments'),
|
147 |
+
));
|
148 |
+
|
149 |
+
$this->getMassactionBlock()->addItem('pdfcreditmemos_order', array(
|
150 |
+
'label'=> Mage::helper('sales')->__('Print Credit Memos'),
|
151 |
+
'url' => $this->getUrl('*/sales_order/pdfcreditmemos'),
|
152 |
+
));
|
153 |
+
|
154 |
+
$this->getMassactionBlock()->addItem('pdfdocs_order', array(
|
155 |
+
'label'=> Mage::helper('sales')->__('Print All'),
|
156 |
+
'url' => $this->getUrl('*/sales_order/pdfdocs'),
|
157 |
+
));
|
158 |
+
|
159 |
+
$this->getMassactionBlock()->addItem('print_shipping_label', array(
|
160 |
+
'label'=> Mage::helper('sales')->__('Print Shipping Labels'),
|
161 |
+
'url' => $this->getUrl('*/sales_order_shipment/massPrintShippingLabel'),
|
162 |
+
));
|
163 |
+
|
164 |
+
$this->getMassactionBlock()->addItem('delete_order', array(
|
165 |
+
'label'=> Mage::helper('sales')->__('Delete Order'),
|
166 |
+
'url' => $this->getUrl('removeallorder/adminhtml_removeallorder/massDelete'),
|
167 |
+
'confirm' => Mage::helper('sales')->__('Are you sure you want to delete order?')
|
168 |
+
));
|
169 |
+
|
170 |
+
return $this;
|
171 |
+
}
|
172 |
+
public function getRowUrl($row)
|
173 |
+
{
|
174 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
175 |
+
return $this->getUrl('*/sales_order/view', array('order_id' => $row->getId()));
|
176 |
+
}
|
177 |
+
return false;
|
178 |
+
}
|
179 |
+
|
180 |
+
public function getGridUrl()
|
181 |
+
{
|
182 |
+
return $this->getUrl('*/*/grid', array('_current'=>true));
|
183 |
+
}
|
184 |
+
|
185 |
+
}
|
186 |
+
?>
|
app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order/Render/Delete.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class PI_Removeallorder_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('removeallorder/adminhtml_removeallorder/delete',array('order_id' => $orderID));
|
11 |
+
$link = '<a href="'.$view.'">View</a> <a href="#" onclick="deleteConfirm(\''.$message.'\', \'' . $delete . '\')">Delete</a>';
|
12 |
+
return $link;
|
13 |
+
}
|
14 |
+
|
15 |
+
|
16 |
+
}
|
17 |
+
|
18 |
+
?>
|
app/code/community/PI/Removeallorder/Block/Adminhtml/Sales/Order/View.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class PI_Removeallorder_Block_Adminhtml_Sales_Order_View extends Mage_Adminhtml_Block_Sales_Order_View {
|
3 |
+
public function __construct() {
|
4 |
+
|
5 |
+
parent::__construct();
|
6 |
+
$message = Mage::helper('sales')->__('Are you sure you want to delete this order?');
|
7 |
+
$this->_addButton('button_id', array(
|
8 |
+
'label' => Mage::helper('Sales')->__('Delete Order'),
|
9 |
+
'onclick' => 'deleteConfirm(\''.$message.'\', \'' . $this->getDeleteUrl() . '\')',
|
10 |
+
'class' => 'delete'
|
11 |
+
), 0, 100, 'header', 'header');
|
12 |
+
}
|
13 |
+
|
14 |
+
public function getDeleteUrl()
|
15 |
+
{
|
16 |
+
return $this->getUrl('removeallorder/adminhtml_removeallorder/delete', array('_current'=>true));
|
17 |
+
}
|
18 |
+
}
|
19 |
+
?>
|
app/code/community/PI/Removeallorder/controllers/Adminhtml/RemoveallorderController.php
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class PI_Removeallorder_Adminhtml_RemoveallorderController extends Mage_Adminhtml_Controller_action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
$order = Mage::getModel('sales/order')->getCollection();
|
7 |
+
foreach($order as $order)
|
8 |
+
{
|
9 |
+
$deleteorderIds[] = $order->getId();
|
10 |
+
}
|
11 |
+
$this->massDelete($deleteorderIds);
|
12 |
+
|
13 |
+
$this->_redirectReferer('*/*/');
|
14 |
+
}
|
15 |
+
protected function _initOrder()
|
16 |
+
{
|
17 |
+
$id = $this->getRequest()->getParam('order_id');
|
18 |
+
$order = Mage::getModel('sales/order')->load($id);
|
19 |
+
|
20 |
+
if (!$order->getId()) {
|
21 |
+
Mage::getSingleton('adminhtml/session')->addError($this->__('This order no longer exists.'));
|
22 |
+
$this->_redirectReferer('adminhtml/sales_order/index');
|
23 |
+
}
|
24 |
+
Mage::register('sales_order', $order);
|
25 |
+
Mage::register('current_order', $order);
|
26 |
+
return $order;
|
27 |
+
}
|
28 |
+
public function deleteAction() {
|
29 |
+
if($order = $this->_initOrder()) {
|
30 |
+
try {
|
31 |
+
$order->delete()->save();
|
32 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Order was successfully deleted'));
|
33 |
+
$this->_redirectReferer('adminhtml/sales_order/index');
|
34 |
+
} catch (Exception $e) {
|
35 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
36 |
+
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('order_ids')));
|
37 |
+
}
|
38 |
+
}
|
39 |
+
$this->_redirectReferer('adminhtml/sales_order/index');
|
40 |
+
}
|
41 |
+
public function massDeleteAction() {
|
42 |
+
$deleteorderIds = $this->getRequest()->getParam('order_ids');
|
43 |
+
if(!is_array($deleteorderIds)) {
|
44 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
|
45 |
+
} else {
|
46 |
+
try {
|
47 |
+
foreach ($deleteorderIds as $deleteorderId) {
|
48 |
+
Mage::getModel('sales/order')->load($deleteorderId)->delete();
|
49 |
+
}
|
50 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(
|
51 |
+
Mage::helper('adminhtml')->__(
|
52 |
+
'Total of %d record(s) were successfully deleted', count($deleteorderIds)
|
53 |
+
)
|
54 |
+
);
|
55 |
+
} catch (Exception $e) {
|
56 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
$this->_redirectReferer('adminhtml/sales_order/index');
|
61 |
+
}
|
62 |
+
|
63 |
+
public function massDelete($deleteorderIds) {
|
64 |
+
if(!is_array($deleteorderIds)) {
|
65 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('No Record Found'));
|
66 |
+
} else {
|
67 |
+
try {
|
68 |
+
foreach ($deleteorderIds as $deleteorderId) {
|
69 |
+
Mage::getModel('sales/order')->load($deleteorderId)->delete();
|
70 |
+
}
|
71 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(
|
72 |
+
Mage::helper('adminhtml')->__(
|
73 |
+
'Total of %d record(s) were successfully deleted', count($deleteorderIds)
|
74 |
+
)
|
75 |
+
);
|
76 |
+
} catch (Exception $e) {
|
77 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
|
82 |
+
}
|
83 |
+
}
|
app/code/community/PI/Removeallorder/etc/config.xml
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<PI_Removeallorder>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</PI_Removeallorder>
|
7 |
+
</modules>
|
8 |
+
<admin>
|
9 |
+
<routers>
|
10 |
+
<removeallorder>
|
11 |
+
<use>admin</use>
|
12 |
+
<args>
|
13 |
+
<module>PI_Removeallorder</module>
|
14 |
+
<frontName>removeallorder</frontName>
|
15 |
+
</args>
|
16 |
+
</removeallorder>
|
17 |
+
</routers>
|
18 |
+
</admin>
|
19 |
+
<global>
|
20 |
+
<blocks>
|
21 |
+
<adminhtml>
|
22 |
+
<rewrite>
|
23 |
+
<sales_order>PI_Removeallorder_Block_Adminhtml_Sales_Order</sales_order>
|
24 |
+
</rewrite>
|
25 |
+
<rewrite>
|
26 |
+
<sales_order_grid>PI_Removeallorder_Block_Adminhtml_Sales_Order_Grid</sales_order_grid>
|
27 |
+
</rewrite>
|
28 |
+
<rewrite>
|
29 |
+
<sales_order_view>PI_Removeallorder_Block_Adminhtml_Sales_Order_View</sales_order_view>
|
30 |
+
</rewrite>
|
31 |
+
</adminhtml>
|
32 |
+
</blocks>
|
33 |
+
|
34 |
+
</global>
|
35 |
+
</config>
|
app/etc/modules/PI_Removeallorder.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<PI_Removeallorder>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</PI_Removeallorder>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>PI_Removeallorder</name>
|
4 |
+
<version>1.0.0</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 provides the functionality of deleting all the orders on a single button click. </summary>
|
10 |
+
<description>The extension provides the functionality of removing all the orders on a single button click. This extension is primarily targeted for Developers but it can be very handy and useful for Merchants, in certain circumstances. The extension provides a button "Remove all Orders" under Sales->Orders. The functionality of removing multiple orders is usually required by the Developers when they are done with the development and the store is ready to be made live. Often, during the development phase many dummy orders are placed which needs to be removed before making a web store live.</description>
|
11 |
+
<notes>This is a stable version.</notes>
|
12 |
+
<authors><author><name>pureimagination</name><user>pureimagination</user><email>johncarter15oct@gmail.com</email></author></authors>
|
13 |
+
<date>2014-11-23</date>
|
14 |
+
<time>06:52:02</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="PI"><dir name="Removeallorder"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Grid.php" hash="6573cff113998fca95fa8c2438dcb9b9"/><dir name="Render"><file name="Delete.php" hash="57c01f6d881b0471f9640adfe8a3ae84"/></dir><file name="View.php" hash="449b9380f6cde6d6e394be7f0329ab59"/></dir><file name="Order.php" hash="d1ad76304bec4c262dcae9eee5791ba3"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="RemoveallorderController.php" hash="22bd9e6351551d04b419ef0502bda634"/></dir></dir><dir name="etc"><file name="config.xml" hash="11201216f9d7bf4fd23df4fa2db6dbad"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PI_Removeallorder.xml" hash="f71830813c4d1bd8f11b24cf5fd4d8d9"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
+
</package>
|