Total Posts:
4
Karma:
38
Joined:
5/13/2016
Location:
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?
Total Posts:
1052
Karma:
8801
Joined:
6/12/2015
Location:
Bangladesh
you need to make empty Order,OrderItem and OrderNote Tables.
Total Posts:
4
Karma:
38
Joined:
5/13/2016
Location:
Canada
I assume that there is also another table to clean (the items in the order), correct?
Total Posts:
1052
Karma:
8801
Joined:
6/12/2015
Location:
Bangladesh
I think these three tables are enough.
Total Posts:
5
Karma:
123
Joined:
6/16/2017
Location:
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)
Total Posts:
54
Karma:
338
Joined:
9/10/2014
Location:
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)
Total Posts:
311
Karma:
2556
Joined:
4/15/2010
Location:
United States
Is this still a valid list for nopC 4.1? TIA...
Total Posts:
125
Karma:
892
Joined:
3/29/2019
Location:
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!
Total Posts:
311
Karma:
2556
Joined:
4/15/2010
Location:
United States
True enough, but won't help in my situation. The info would still be useful. Thx.