Version Notes
If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at contact@asperience.fr, with ASPerience_DeleteAllOrders as part of the subject line.
Download this release
Release Info
Developer | Jean-Sébastien Hederer |
Extension | Asperience_DeleteAllOrders |
Version | 0.2.2 |
Comparing to | |
See all releases |
Code changes from version 0.2.0 to 0.2.2
app/code/community/Asperience/DeleteAllOrders/controllers/IndexController.php
CHANGED
@@ -50,7 +50,7 @@ class Asperience_DeleteAllOrders_IndexController extends Mage_Adminhtml_Sales_Or
|
|
50 |
$id = $invoice->getId();
|
51 |
$invoice = Mage::getModel('sales/order_invoice')->load($id);
|
52 |
$invoices_delete[] = $invoice->getIncrementId();
|
53 |
-
|
54 |
$countDeleteInvoice++;
|
55 |
/*try {
|
56 |
Mage::log(get_class(Mage::getModel('sales/order_invoice_grid_collection')));
|
@@ -70,7 +70,7 @@ class Asperience_DeleteAllOrders_IndexController extends Mage_Adminhtml_Sales_Or
|
|
70 |
$id = $shipment->getId();
|
71 |
$shipment = Mage::getModel('sales/order_shipment')->load($id);
|
72 |
$shipments_delete[] = $shipment->getIncrementId();
|
73 |
-
|
74 |
$countDeleteShipment++;
|
75 |
/*try {
|
76 |
$shipment = Mage::getModel('sales/order_shipment_grid')->load($id);
|
@@ -89,7 +89,7 @@ class Asperience_DeleteAllOrders_IndexController extends Mage_Adminhtml_Sales_Or
|
|
89 |
$id = $creditmemo->getId();
|
90 |
$creditmemo = Mage::getModel('sales/order_creditmemo')->load($id);
|
91 |
$creditmemos_delete[] = $creditmemo->getIncrementId();
|
92 |
-
|
93 |
$countDeleteCreditmemo++;
|
94 |
/*try {
|
95 |
$creditmemo = Mage::getModel('sales/order_creditmemo_grid')->load($id);
|
@@ -103,7 +103,7 @@ class Asperience_DeleteAllOrders_IndexController extends Mage_Adminhtml_Sales_Or
|
|
103 |
}
|
104 |
$order = Mage::getModel('sales/order')->load($orderId);
|
105 |
$orders_delete[] = $order->getIncrementId();
|
106 |
-
|
107 |
$countDeleteOrder++;
|
108 |
/*try {
|
109 |
$order = Mage::getModel('sales/order_grid')->load($orderId);
|
50 |
$id = $invoice->getId();
|
51 |
$invoice = Mage::getModel('sales/order_invoice')->load($id);
|
52 |
$invoices_delete[] = $invoice->getIncrementId();
|
53 |
+
$invoice->delete();
|
54 |
$countDeleteInvoice++;
|
55 |
/*try {
|
56 |
Mage::log(get_class(Mage::getModel('sales/order_invoice_grid_collection')));
|
70 |
$id = $shipment->getId();
|
71 |
$shipment = Mage::getModel('sales/order_shipment')->load($id);
|
72 |
$shipments_delete[] = $shipment->getIncrementId();
|
73 |
+
$shipment->delete();
|
74 |
$countDeleteShipment++;
|
75 |
/*try {
|
76 |
$shipment = Mage::getModel('sales/order_shipment_grid')->load($id);
|
89 |
$id = $creditmemo->getId();
|
90 |
$creditmemo = Mage::getModel('sales/order_creditmemo')->load($id);
|
91 |
$creditmemos_delete[] = $creditmemo->getIncrementId();
|
92 |
+
$creditmemo->delete();
|
93 |
$countDeleteCreditmemo++;
|
94 |
/*try {
|
95 |
$creditmemo = Mage::getModel('sales/order_creditmemo_grid')->load($id);
|
103 |
}
|
104 |
$order = Mage::getModel('sales/order')->load($orderId);
|
105 |
$orders_delete[] = $order->getIncrementId();
|
106 |
+
$order->delete();
|
107 |
$countDeleteOrder++;
|
108 |
/*try {
|
109 |
$order = Mage::getModel('sales/order_grid')->load($orderId);
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Asperience_DeleteAllOrders</name>
|
4 |
-
<version>0.2.
|
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>
|
@@ -12,9 +12,9 @@ You can set the status of orders you want to delete in the configuration section
|
|
12 |
Warning: It's preferable to delete only the testing orders during the development of your local website. Orders deletion is at your own risk.</description>
|
13 |
<notes>If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at contact@asperience.fr, with ASPerience_DeleteAllOrders as part of the subject line.</notes>
|
14 |
<authors><author><name>Jean-Sébastien Hederer</name><user>hedererjs</user><email>hedererjs@asperience.fr</email></author></authors>
|
15 |
-
<date>2013-04-
|
16 |
-
<time>
|
17 |
-
<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="9c11ed2bbc7bc2e8e2e41c0247c4bed8"/><file name="Order.php" hash="ddec94fe82a280cb3e7d8cf082c50861"/><file name="Status.php" hash="619a4803a34efe0f82378af8f42bb7db"/></dir><dir name="controllers"><file name="IndexController.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Asperience_DeleteAllOrders</name>
|
4 |
+
<version>0.2.2</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>
|
12 |
Warning: It's preferable to delete only the testing orders during the development of your local website. Orders deletion is at your own risk.</description>
|
13 |
<notes>If you have ideas for improvements or find bugs, please send them to Jean-Sébastien Hederer at contact@asperience.fr, with ASPerience_DeleteAllOrders as part of the subject line.</notes>
|
14 |
<authors><author><name>Jean-Sébastien Hederer</name><user>hedererjs</user><email>hedererjs@asperience.fr</email></author></authors>
|
15 |
+
<date>2013-04-19</date>
|
16 |
+
<time>12:47:07</time>
|
17 |
+
<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="9c11ed2bbc7bc2e8e2e41c0247c4bed8"/><file name="Order.php" hash="ddec94fe82a280cb3e7d8cf082c50861"/><file name="Status.php" hash="619a4803a34efe0f82378af8f42bb7db"/></dir><dir name="controllers"><file name="IndexController.php" hash="71aec5fc0851747c542e335e177e4006"/></dir><dir name="etc"><file name="config.xml" hash="bd613021b1d909599ea8b2296b5d5f8b"/><file name="system.xml" hash="a6ffdfefc94437bd6bf45453549aa389"/></dir></dir></dir></target><target name="magelocale"><dir><dir name="de_DE"><file name="Asperience_DeleteAllOrders.csv" hash="3b17c8b23f90a9ade272559da0bc3ce0"/></dir><dir name="en_US"><file name="Asperience_DeleteAllOrders.csv" hash="9529fa6e4e87db30bca48ce104cb0d05"/></dir><dir name="fr_FR"><file name="Asperience_DeleteAllOrders.csv" hash="25f0bf507116918d1862ce5a18035a15"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Asperience_DeleteAllOrders.xml" hash="564d484d06362fee6d4f0b42660bfa85"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|