Manually Cancel An Order

╄→гoц情女王★ 提交于 2020-01-25 05:51:26

问题


I have some orders that need to be cancelled but because they originally were pre-authorized through auth.net, they will not cancel. I get a "no transaction found" message when trying to cancel/void. Because of this I simply want to cancel the orders manually in the database and skip the standard void process. Does anyone know the specific tables in the Magento database that need to be modified to simply cancel an order?


回答1:


Be careful with this. The Table in 1.7 is sales_flat_order. Columns are state and status. Your going to what to set them both to canceled. NOTE: You can use a select and where clause to verify names. This should work but I'm not 100% sure that it will not cause problems. I'm just answering your question.

You can really mess things up with this method so it would be smart to backup your database before you try anything.

GL




回答2:


Just a quick addition here. If you are manually modify the order in the db as suggested above, you will also need modify the entry in table sales_flat_order_grid. Set status = canceled. Otherwise the order will appear as "Processing" in the grid view.



来源:https://stackoverflow.com/questions/16631184/manually-cancel-an-order

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!