Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreWWStore QuestionWWStore Question
Previous
 
Next
New Post
5/21/2007 1:58 PM
 

After installation of the store I used several "test" orders to check on functionality.  Is there an easy way to delete/remove orders?  I see several orders under my test login id and no longer want the order history associated with it.  Please advise.  Thank you.

 
New Post
5/22/2007 10:03 AM
 

Hi,

This is a good question! You can't delete orders with WWStore. May be for some legal reasons, I don't know?!

First of all, you must understand how the tables are dependent. The table {prefix}WWStore_OrderDetails is linked to the table {prefix}WWStore_Orders by the OrderID column, and the table {prefix}WWStore_Orders is linked to the table {prefix}Users by the UserID column. That means that you must know the user ID to remove his orders. It will be necessary to remove the records of the {prefix}WWStore_OrderDetails table initially. Then, you will be able to remove the records of the {prefix}WWStore_Orders table. Tables can have a prefix name ({prefix}TableName), this is an optional setting when you install DNN. Search for objectQualifier inside you web.config file.

Because you can't undo delete commands, it will be a very good idea to backup you database BEFORE apply the following procedure!

Finding a user ID :

  • If your user is a 'normal' one : Go to Admin menu and select User Accounts. Search the user, then click on the pencil to the left of his name. Now you have his profile on screen, the user ID is to the right of is name. Eg: Edit User - ploum (Id: 3). Note this number.
  • If your user is a SuperUser : do the same from Host menu and select SuperUsers Accounts.

Delete records with DNN :

  • Logon as host
  • Go to Host > SQL
  • Copy the following SQL command and paste it in the text box :
    • delete from {databaseOwner}{objectQualifier}WWStore_OrderDetails where OrderID in (select OrderID from {databaseOwner}{objectQualifier}WWStore_Orders where UserID=XXX)
    • Replace XXX by the right user ID!!!
    • Click on 'Execute'
  • Copy the following SQL command and paste it in the text box :
    • delete from {databaseOwner}{objectQualifier}WWStore_Orders where UserID=XXX
    • Replace XXX by right user ID!!!
    • Click on 'Execute'

If you have SQL Server Enterprise Manager (or similar database tools), it's more easy and secure because you can delete rows 'visualy".

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
5/30/2007 7:37 AM
 

Hello Gilles,

Sorry I didn't respond sooner but I was on vacation and didn't have access to a PC.

I just wanted to thank you for your time and to let you know that I was able to remove the test data using TOAD for SQL Server.  Your explanation was crystal clear and I was able to delete the rows in the appropriate tables quite easily!

Thank you.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreWWStore QuestionWWStore Question


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out