osCmax v2.5 User Manual
Results 1 to 5 of 5

Delete multiple orders?

This is a discussion on Delete multiple orders? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; The store has orders back dating to 2005 and the database is HUGE now.. I would like to remove all ...

      
  1. #1
    osCMax Testing Team wkdwich's Avatar
    Join Date
    Jul 2007
    Posts
    307
    Rep Power
    11


    Default Delete multiple orders?

    The store has orders back dating to 2005 and the database is HUGE now.. I would like to remove all orders and related data - but obviously not the customer data - from 2005 through say Dec 31, 2007. I have searched both here and at forums.oscommerce.com and the contributions there and can not find anything that will accomplish this task..

    I'm thinking its has to nothing more than a simple request of the DB to remove all orders from order #xx through order #xxxx

    Or is there a sql statement I can issue in phpMyAdmin that will accomplish this task??
    Debbie D
    NY & VA

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Delete multiple orders?

    Question...Why?

    With the actually space in the database might be relatively small compared to the displayed data - Even if you have a large number of item in the database - phyical space is cheap. Ether way would not cause a noticeable slow down on your database - why remove history?

    Also here might be issues with customer that might come back to view what they had purchased a year, two or three ago....(bought it - broke it, stolen/lost, want another etc.....).
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    osCMax Testing Team wkdwich's Avatar
    Join Date
    Jul 2007
    Posts
    307
    Rep Power
    11


    Default Re: Delete multiple orders?

    Because my client want them deleted no other answer except with all these orders the DB is 145MB and slow to back up.. they have maybe 20k of orders in there.. they dont sell that type of product that they need to worry about 4 year old orders, besides its been entered in-house long ago and those records are available
    Debbie D
    NY & VA

  4. #4
    osCMax Testing Team
    Join Date
    May 2006
    Posts
    83
    Rep Power
    12


    Default Re: Delete multiple orders?

    I just found this contribution and it seems to work.

    osCommerce Community Add-Ons

    I needed to delete orders because I was copying a database over to a "shadow" development site and I needed to remove the customer and the old orders. That contrib seems to work pretty well, and it sounds like it will do what you want. Best of all, it just drops right into OSCMAX. If you want to delete, make sure you enable that option as the instructions direct...

  5. #5
    osCMax Testing Team wkdwich's Avatar
    Join Date
    Jul 2007
    Posts
    307
    Rep Power
    11


    Default Re: Delete multiple orders?

    wow great find.. you wanna know how long I poked around in the contributions area and didnt come across that one!! no you really dont wanna know

    A little too late for this project.. I actually am moving a site from a vannila osc to oscmax and wanted to get rid of all the older orders and did it manually -- a visual look see at the DB lines I was uploading to the new DB then I went in with phpMyAdmin and removed all the order numbers that I missed.. seems to have done a good job.. but the client wants all the old orders removed on a regular basis, so this will be perfect!

    thanks so very much for taking the time to post..
    Debbie D
    NY & VA

Similar Threads

  1. Delete Pending Orders
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-14-2008, 03:14 PM
  2. admin - copy, move and delete multiple products
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-29-2007, 04:26 AM
  3. admin - copy, move and delete multiple products
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-17-2007, 07:50 PM
  4. Any way to delete multiple products at one time?
    By gheffron in forum osCmax v1.7 Discussion
    Replies: 5
    Last Post: 03-24-2004, 12:15 PM
  5. Delete all Pending orders
    By sheikyerbouti in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-21-2002, 03:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •