Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2007
    Posts
    20
    Plugin Contributions
    0

    Default Finished Testing, Ready to Move to Production

    I just finished testing my Zen Cart install and am ready to move to production. I've reset everything that I can in my admin section, but would like to reset my order numbers. I had changed them to start at 1000001, but found that a number this big doesn't display well on my site. So, since I don't mind losing all of my test customer/order data, I thought this would be a good time to do this. My question is really two:

    1.) If I want to set my order number to one that is lower than it was, it is as simple as a ALTER TABLE orders AUTO_INCREMENT = [number here]

    2.) What's the best way to get rid of all my test data (hits, views, customers, orders, etc) but still keep my settings, categories, products, etc.?

    Thank you!!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Finished Testing, Ready to Move to Production

    1. Truncate all of these tables:
    Code:
        address_book
        customers
        customers_info
        email_archive
        products_notifications
        customers_basket
        customers_basket_attributes
        files_uploaded
        orders
        orders_products
        orders_products_attributes
        orders_products_download
        orders_status_history
        orders_total
        paypal
        paypal_payment_status_history
        paypal_session
        paypal_testing
        admin_activity_log
        authorizenet
        banners_history
        counter
        counter_history
        coupon_email_track
        coupon_redeem_track
        email_archive
        coupon_gv_customer
        coupon_gv_queue
    2. Reset the products_viewed column to 0 in the products_description table.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Finished Testing, Ready to Move to Production

    That's just what I was looking for. Thanks!!

  4. #4
    Join Date
    Dec 2007
    Location
    Northern California
    Posts
    45
    Plugin Contributions
    0

    Default Re: Finished Testing, Ready to Move to Production

    Is it okay to use phpMyAdmin to just delete the records?

  5. #5
    Join Date
    Jul 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: Finished Testing, Ready to Move to Production

    Quote Originally Posted by DrByte View Post
    2. Reset the products_viewed column to 0 in the products_description table.
    Can someone please tell me where I can find this file and how do I reset this file to 0?

    Thanks.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Finished Testing, Ready to Move to Production

    Admin->Tools->Store Manager ... there are some counter reset options there.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jul 2009
    Posts
    122
    Plugin Contributions
    0

    Default Re: Finished Testing, Ready to Move to Production

    Thanks for your reply and letting me know DrByte very much appreciated :).

 

 

Similar Threads

  1. v151 Creating a Testing site from the Production site
    By juggernautsei in forum Basic Configuration
    Replies: 5
    Last Post: 24 Apr 2014, 09:09 PM
  2. Move UAT changes to Production Zencart
    By andrewcklau in forum General Questions
    Replies: 0
    Last Post: 25 Mar 2010, 04:25 PM
  3. USPS Testing/Production Mode
    By SaMortensen in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 12 Feb 2009, 10:40 PM
  4. Move to production is not working
    By alicia1234 in forum Installing on a Linux/Unix Server
    Replies: 22
    Last Post: 25 Jan 2009, 11:26 PM

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