[英]Remove deleted orders from Magento sales > orders
I've tried a few different methods for deleting test orders from Magento. 我尝试了几种从Magento删除测试订单的方法。
Some if not all of these methods seem to delete the entries from the database however none of these solutions remove the order from the back end of Magento. 这些方法中的一些(如果不是全部)似乎都从数据库中删除了条目,但是这些解决方案都没有从Magento的后端删除订单。 These orders are still showing under Sales > Orders as well as the dashboard.
这些订单仍显示在“销售”>“订单”以及仪表板下。 We have a development environment, a testing environment and a production environment however we still like to place test orders in production to ensure our changes were pushed correctly.
我们有一个开发环境,一个测试环境和一个生产环境,但是我们仍然喜欢在生产中放置测试订单,以确保我们的更改被正确推送。
Am I missing something? 我想念什么吗? Others seem to be satisfied with the Plugin/SQL/PHP deletion methods listed above.
其他人似乎对上面列出的Plugin / SQL / PHP删除方法感到满意。 I've tried flushing the cache and cache storage.
我试过刷新缓存和缓存存储。 Nothing seems to work.
似乎没有任何作用。 Any assistance would be much appreciated.
任何帮助将不胜感激。
Modern version of Magento propagate order information to the sales_flat_order_grid
table, and it's this table the admin console reads from when displaying orders for the grid. Magento的现代版本将订单信息传播到
sales_flat_order_grid
表,管理控制台在显示网格订单时从中读取该表。 I didn't look at the methods you linked to, but my guess is they don't clear out this table. 我没有查看链接到的方法,但是我猜他们没有清除此表。
In fresh install, http://www.magentocommerce.com/magento-connect/asperience-deleteorders.html works perfectly as there are constraint between sales table and sales_grid table. 在全新安装中,由于sales表和sales_grid表之间存在约束,因此http://www.magentocommerce.com/magento-connect/asperience-deleteorders.html可以完美地工作。 New versions of http://www.magentocommerce.com/magento-connect/asperience-deleteorders.html detects if specific deletion of sales_grid must be done
新版本的http://www.magentocommerce.com/magento-connect/asperience-deleteorders.html检测是否必须完成对sales_grid的特定删除
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.