投稿総数:
4
カルマ:
38
参加:
2016/05/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/06/12
ロケーション:
Bangladesh
you need to make empty Order,OrderItem and OrderNote Tables.
投稿総数:
4
カルマ:
38
参加:
2016/05/13
ロケーション:
Canada
I assume that there is also another table to clean (the items in the order), correct?
投稿総数:
1052
カルマ:
8801
参加:
2015/06/12
ロケーション:
Bangladesh
I think these three tables are enough.
投稿総数:
5
カルマ:
123
参加:
2017/06/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/09/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/04/15
ロケーション:
United States
Is this still a valid list for nopC 4.1? TIA...
投稿総数:
125
カルマ:
892
参加:
2019/03/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/04/15
ロケーション:
United States
True enough, but won't help in my situation. The info would still be useful. Thx.