Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2020
    Location
    USA
    Posts
    9
    Plugin Contributions
    0

    customer issue Deleting Customer Orders & Customers

    Zencart 1.56, PHP 7.2.

    I have taken a mirror of my customers website and database. They need a 3rd party to come in and see why a plugin isn't working for a payment module. For security purposes, they would like all their customer data and orders deleted from the database.

    I tried doing this in phpmyadmin, this only caused a problem when testing the checkout, the database encounted an error. Which defeats the purpose of them testing the checkout for their module.

    Example:

    DELETE FROM orders;
    DELETE FROM order_history_status;

    etc.

    Is there another way to delete the data? I have seen many asking the same thing and they don't seem to have a solution.

    Thank you for your time.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Deleting Customer Orders & Customers

    DELETE FROM orders;
    DELETE FROM orders_products_attributes;
    DELETE FROM orders_products;
    DELETE FROM orders_products_download;
    DELETE FROM orders_status_history;
    DELETE FROM orders_total;
    DELETE FROM paypal;
    DELETE FROM authorizenet;
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Feb 2020
    Location
    USA
    Posts
    9
    Plugin Contributions
    0

    Default Re: Deleting Customer Orders & Customers

    Quote Originally Posted by swguy View Post
    DELETE FROM orders;
    DELETE FROM orders_products_attributes;
    DELETE FROM orders_products;
    DELETE FROM orders_products_download;
    DELETE FROM orders_status_history;
    DELETE FROM orders_total;
    DELETE FROM paypal;
    DELETE FROM authorizenet;
    Thank you so much, this helped greately. I then used and modifide the bulk delete spammers for the customers. I can checkout without errors for testing. This solution should help many. Thank you again.

 

 

Similar Threads

  1. v139h change Customer Orders Total in Database without deleting orders?
    By AvaAdorn in forum Managing Customers and Orders
    Replies: 6
    Last Post: 30 Jun 2012, 05:00 AM
  2. Mass deleting customers & orders from a test database
    By KevinP in forum General Questions
    Replies: 4
    Last Post: 25 May 2009, 03:40 PM
  3. Deleting all customers/orders
    By mooncavecrystals in forum General Questions
    Replies: 4
    Last Post: 23 Apr 2008, 01:46 AM
  4. Deleting Customers & Orders
    By esugrue in forum Managing Customers and Orders
    Replies: 2
    Last Post: 5 Nov 2007, 11:17 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR