Clear test orders

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
Is there a way to clear orders entered during testing that does not reset other changes in the database (tax settings, localisation, users etc.)

Thanks
Paul
13 years ago
fairlieagile wrote:
Is there a way to clear orders entered during testing that does not reset other changes in the database (tax settings, localisation, users etc.)

Thanks
Paul


First delete all the orders from the admin section.

after that to make sure everything has been deleted > just open nopCommerce database, find table "Nop_Order"

if still order records are there, just delete those records manually from the table and you're good to go !!!!!
6 years ago
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)
6 years ago
i am also encountring same problem. I want to clear all test orders from my database. I am a non coder and hence require something that could be donne from backend or if it could only be done through code than please write the whole procedure....Thankss in advance
3 years ago
Thanks! Works well on nop 4.3
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.