I am working on my module.I want to know location of function which is call when orders are deleted from admin after select check box and then select Delete action and hit Submit.
-
have you added any custom extension for this?– AbdulCommented Nov 26, 2015 at 10:18
-
No i want to know location of file where core function is working for delete orders.– MathewCommented Nov 26, 2015 at 10:19
-
I want to check login in that function first for deletion of order.– MathewCommented Nov 26, 2015 at 10:19
-
Magento not provided default functionality for the delete orders– AbdulCommented Nov 26, 2015 at 10:22
3 Answers
Magento not provided functionality like delete orders
if you want to delete order you want to install some order delete extension
here is some best order delete extension
http://www.magentocommerce.com/magento-connect/delete-orders-6.html
https://www.mgt-commerce.com/magento-delete-orders.html
https://www.yireo.com/software/magento-extensions/delete-any-order
or you can do it with codding
here is tutorial
By default you can't delete orders in Magento. However there are several extensions available that will allow you to delete orders either individually or in bulk such as this one: http://www.magentocommerce.com/magento-connect/delete-orders-6.html
Alternatively you can write your own massDeleteAction as outlined here: http://inchoo.net/magento/how-to-add-massactions-to-magentos-grid/
In app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php you can remove and change delete action.
$this->_removeButton('delete');
and remove deleteConfirm
in this file , I hope this helpfull for you one time open this file. You can also understand
-
1You should add more details to the answer as one line answers are generally not helpful. In this particular case, it isn't clear what you meant by showing the location of that file.– PrateekCommented Nov 26, 2015 at 10:39
-
please edit your answer instead of posting all in the comments :) Commented Nov 26, 2015 at 11:41