Yet another release of Delete-Any-Order
Saturday, 03 October 2009Last days have been busy with support for the Delete-Any-Order module. This Magento module allows the deletion of orders with any status, but by doing so it's also responsible for cleaning up various other entities in the Magento database (shipping, taxes, downloadable products, addresses, etcetera).
While we are able to test various things in our development environments, "in the wild" there appeared to be various more things to think about. The newest version of Delete-Any-Order - version 0.9.2 - tries to solve most problems.
In version 0.9.1 a new method of deletion was introduced within the page "Analyse Database" - a method more to the database-level than to the recommended object-level of Magento classes. This method worked out better in some environments, so we decided to copy that code for usage with the regular deletion of orders. The "Analyse Database" link now also moved to a button in the upper-right (yes, we know, a major and fantastic improvement).
Version 0.9.2 also ships with a new feature to reset the Inventory Stock. This is optional and has to be enabled through two options: First of all, navigate to "System > Configuration > [Default Config] > Sales > Delete Any Order > Settings" and enable the option to reset the stock. Next, navigate to "System > Configuration > Catalog > Inventory > Stock Options" and set the setting "Decrease Stock When Order is Placed" to "Yes" (cataloginventory/options/can_subtract).
