回帖总数:
4
业力:
38
注册日期:
2016/5/13
位置:
Canada
I'm in the process of testing/setting up a new store, but I would like to remove any of my test orders from the system when I am ready to go live. How can I do this?
回帖总数:
1052
业力:
8801
注册日期:
2015/6/12
位置:
Bangladesh
you need to make empty Order,OrderItem and OrderNote Tables.
回帖总数:
4
业力:
38
注册日期:
2016/5/13
位置:
Canada
I assume that there is also another table to clean (the items in the order), correct?
回帖总数:
1052
业力:
8801
注册日期:
2015/6/12
位置:
Bangladesh
I think these three tables are enough.
回帖总数:
5
业力:
123
注册日期:
2017/6/16
位置:
India
Use this. TRUNCATE TABLE OrderNote DELETE FROM GiftCard DELETE FROM OrderItem DELETE FROM [Order] DBCC CHECKIDENT (OrderNote, RESEED, 0) DBCC CHECKIDENT (GiftCard, RESEED, 0) DBCC CHECKIDENT (OrderItem, RESEED, 0) DBCC CHECKIDENT ([Order], RESEED, 0)
回帖总数:
54
业力:
338
注册日期:
2014/9/10
位置:
New Zealand
Needs one more table deleted TRUNCATE TABLE OrderNote DELETE FROM GiftCard DELETE FROM OrderItemDELETE FROM RewardPointsHistory DELETE FROM [Order] DBCC CHECKIDENT (OrderNote, RESEED, 0) DBCC CHECKIDENT (GiftCard, RESEED, 0)DBCC CHECKIDENT (RewardPointsHistory, RESEED, 0) DBCC CHECKIDENT (OrderItem, RESEED, 0) DBCC CHECKIDENT ([Order], RESEED, 0)
回帖总数:
311
业力:
2556
注册日期:
2010/4/15
位置:
United States
Is this still a valid list for nopC 4.1? TIA...
回帖总数:
125
业力:
892
注册日期:
2019/3/29
位置:
United States
The better thing to do is create a full database backup BEFORE start your tests, so you are free to test everything as you want. When you finish it, just restore your database backup. Easy peasy!
回帖总数:
311
业力:
2556
注册日期:
2010/4/15
位置:
United States
True enough, but won't help in my situation. The info would still be useful. Thx.