Version Notes
If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at www.asperience.fr, with ASPerience CatalogRuleExtend as part of the subject line.
Download this release
Release Info
Developer | Jean-Sébastien Hederer |
Extension | Asperience_DeleteAllOrders |
Version | 0.1.3 |
Comparing to | |
See all releases |
Code changes from version 0.1.2 to 0.1.3
app/code/community/Asperience/DeleteAllOrders/Block/Grid.php
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @category ASPerience
|
4 |
-
* @package Asperience_DeleteAllOrders
|
5 |
-
* @author ASPerience - www.asperience.fr
|
6 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
-
*/
|
8 |
-
|
9 |
-
class Asperience_DeleteAllOrders_Block_Grid extends Mage_Adminhtml_Block_Sales_Order_Grid
|
10 |
-
{
|
11 |
-
public function __construct() {
|
12 |
-
parent::__construct ();
|
13 |
-
}
|
14 |
-
|
15 |
-
protected function _prepareMassaction()
|
16 |
-
{
|
17 |
-
parent::_prepareMassaction();
|
18 |
-
|
19 |
-
$this->getMassactionBlock()->addItem('delete_order', array(
|
20 |
-
'label'=> Mage::helper('deleteallorders')->__('Delete All !'),
|
21 |
-
'url' => $this->getUrl('deleteallorders', array('_current'=>true)),
|
22 |
-
'confirm' => Mage::helper('deleteallorders')->__('Are you sure to delete the selected sales orders? Warning: invoices/shipments/credit memos associated will be also deleted!'),
|
23 |
-
));
|
24 |
-
return $this;
|
25 |
-
}
|
26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Asperience/DeleteAllOrders/Model/Observer.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @category ASPerience
|
4 |
+
* @package Asperience_DeleteAllOrders
|
5 |
+
* @author ASPerience - www.asperience.fr
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
*/
|
8 |
+
|
9 |
+
|
10 |
+
class Asperience_DeleteAllOrders_Model_Observer
|
11 |
+
{
|
12 |
+
public function addOptionToSelect($observer)
|
13 |
+
{
|
14 |
+
|
15 |
+
if ($observer->getEvent()->getBlock()->getId() == 'sales_order_grid') {
|
16 |
+
$massBlock = $observer->getEvent()->getBlock()->getMassactionBlock();
|
17 |
+
if ($massBlock) {
|
18 |
+
$massBlock->addItem('delete_order', array(
|
19 |
+
'label'=> Mage::helper('deleteallorders')->__('Delete All !'),
|
20 |
+
'url' => Mage::getUrl('deleteallorders', array('_current'=>true)),
|
21 |
+
'confirm' => Mage::helper('deleteallorders')->__('Are you sure to delete the selected sales orders? Warning: invoices/shipments/credit memos associated will be also deleted!'),
|
22 |
+
));
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
app/code/community/Asperience/DeleteAllOrders/etc/config.xml
CHANGED
@@ -10,18 +10,11 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Asperience_DeleteAllOrders>
|
13 |
-
<version>0.1.
|
14 |
</Asperience_DeleteAllOrders>
|
15 |
</modules>
|
16 |
|
17 |
<global>
|
18 |
-
<blocks>
|
19 |
-
<adminhtml>
|
20 |
-
<rewrite>
|
21 |
-
<sales_order_grid>Asperience_DeleteAllOrders_Block_Grid</sales_order_grid>
|
22 |
-
</rewrite>
|
23 |
-
</adminhtml>
|
24 |
-
</blocks>
|
25 |
|
26 |
<helpers>
|
27 |
<deleteallorders>
|
@@ -66,6 +59,21 @@
|
|
66 |
</Asperience_DeleteOrders>
|
67 |
</modules>
|
68 |
</translate>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
</adminhtml>
|
70 |
|
71 |
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Asperience_DeleteAllOrders>
|
13 |
+
<version>0.1.3</version>
|
14 |
</Asperience_DeleteAllOrders>
|
15 |
</modules>
|
16 |
|
17 |
<global>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
<helpers>
|
20 |
<deleteallorders>
|
59 |
</Asperience_DeleteOrders>
|
60 |
</modules>
|
61 |
</translate>
|
62 |
+
|
63 |
+
<events>
|
64 |
+
<!-- A tester :
|
65 |
+
controller_action_layout_render_before_adminhtml_sales_order_index
|
66 |
+
controller_action_postdispatch_adminhtml_sales_order_index
|
67 |
+
-->
|
68 |
+
<adminhtml_block_html_before>
|
69 |
+
<observers>
|
70 |
+
<asperience_deleteallorders>
|
71 |
+
<class>deleteallorders/observer</class>
|
72 |
+
<method>addOptionToSelect</method>
|
73 |
+
</asperience_deleteallorders>
|
74 |
+
</observers>
|
75 |
+
</adminhtml_block_html_before>
|
76 |
+
</events>
|
77 |
</adminhtml>
|
78 |
|
79 |
|
package.xml
CHANGED
@@ -1,21 +1,23 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Asperience_DeleteAllOrders</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Extension allowing to delete all Test Orders.</summary>
|
10 |
-
<description>This extension allows to delete selected sales orders, invoices, shipments and credit memos
|
11 |
-
Sales orders must be have status: « cancelled », « ended » or « closed ».
|
12 |
-
|
13 |
-
Warning: It's preferable to delete only the testing orders during the development of your local website. You take risks if you delete Orders directly in your Website
|
|
|
|
|
14 |
<notes>If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at www.asperience.fr, with ASPerience CatalogRuleExtend as part of the subject line.</notes>
|
15 |
-
<authors><author><name>Jean-Sébastien Hederer</name><user>
|
16 |
-
<date>
|
17 |
-
<time>
|
18 |
-
<contents><target name="
|
19 |
<compatible/>
|
20 |
-
<dependencies
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Asperience_DeleteAllOrders</name>
|
4 |
+
<version>0.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Extension allowing to delete all Test Orders.</summary>
|
10 |
+
<description>This extension allows to delete selected sales orders, invoices, shipments and credit memos.
|
11 |
+
Sales orders must be have status: « cancelled », « ended » or « closed ». 
|
12 |
+

|
13 |
+
Warning: It's preferable to delete only the testing orders during the development of your local website. You take risks if you delete Orders directly in your Website.
|
14 |
+

|
15 |
+
</description>
|
16 |
<notes>If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at www.asperience.fr, with ASPerience CatalogRuleExtend as part of the subject line.</notes>
|
17 |
+
<authors><author><name>Jean-Sébastien Hederer</name><user>hedererjs</user><email>hedererjs@asperience.fr</email></author><author><name>Ronan Capitaine</name><user>Ronan_Capitaine</user><email>capitainer@asperience.fr</email></author></authors>
|
18 |
+
<date>2011-04-07</date>
|
19 |
+
<time>09:00:26</time>
|
20 |
+
<contents><target name="magecommunity"><dir name="Asperience"><dir name="DeleteAllOrders"><dir name="Helper"><file name="Data.php" hash="747caa90dd55fd313f5aa0a642f89b28"/></dir><dir name="Model"><file name="Observer.php" hash="50a294157c0762f00a415b3cc03148a6"/><file name="Order.php" hash="06289d3215d40d4b9c46086fdb5a642c"/></dir><dir name="controllers"><file name="IndexController.php" hash="5b10c12feadd5612c79771b0b403223c"/></dir><dir name="etc"><file name="config.xml" hash="7d6de6b7ea7f7b020ec588ef10c34786"/><file name="system.xml" hash="107d11c39d6fa5ca4496798068638172"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Asperience_DeleteAllOrders.xml" hash="564d484d06362fee6d4f0b42660bfa85"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Asperience_DeleteAllOrders.csv" hash="d4b3da5ed458d5b58fbf8dc56405b112"/></dir><dir name="fr_FR"><file name="Asperience_DeleteAllOrders.csv" hash="db12b650a9d5ceb36da061b9b3a3d32b"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
+
<dependencies><required><php><min>5.2.0</min><max>5.3.6</max></php></required></dependencies>
|
23 |
</package>
|