Building site for online shopping, store owners usually perform lots of in-development operations that involve testing if this or that part of the show is ready and working properly. So after you have installed your Magento, established the store catalog with category tree and goods, selected template, you might need to test if payment transactions are working as expected. For that you create a few test orders.
Do you know what you will see in ‘Orders’ section after you launch your site? Your test orders and no ‘Delete Order’ button.
Magento insists on the orders to be stored, instead of completely removed. You can only set orders status to ‘cancelled’, but cannot delist it completely. This can be quite frustrating both to developers and the merchants. While the decision to limit orders removal makes sense, as they contain customers payment information and deleting it is considered as a fraud. Magento cares about buyers’ safety and limits the ability to do illegal things even by mistake.
Sure thing, that if you are reading this article, you would love to see a “Delete Orders” functionality. So what to do? Are there any workarounds to remove order?
Yes, there is the possibility to remove test orders (and only only for that reason!)
There are multiple tips on different forums, but the main thing not to forget using them is:
To do so, you have to log on your PhpmyAdmin (use full access). Empty all the database tables related to order by running raw queries.
You need to create/find/modify php script and run it from corresponding section of Magento.
Things to consider:
Deleting orders directly in the database can be very dangerous, because Magento has a very complex database structure and many database tables that are linked together. If you do some incorrect move and delete some important for Magento data in one table, this may affect the entire database. So, what to do?
Use Store Manager for Magento application. Using it you do not need to be a developer of tech expert and avoid the direct intervention into the database which, by the way, may be harmful.
Once Store Manager is installed at your PC, go to Orders section, select unwanted orders and press ‘Delete’ button.
Now, selected test orders are removed from your Magento store and it will be in a clean state to start over.
Learn how to remove order details or substitute them with other details; check the way to delete order items using credit memo. Read More...
Find out how to delete Magento 2 order without breaching Magento limits. Read More...
The list of benefits provided by Magento integration with POS system and instructions on how to use the POS. Read More...
Guides on how to get the list of customers with abandoned carts and send them an email reminder using a specific template. Read More...
This website uses cookies.