Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Reset Banner Statistics to Zero?

    OK, testing is nearly done...any idea how I can reset the banner statistics to zero?

  2. #2
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Reset Banner Statistics to Zero?

    I don't see anything in the system for that, but could you simply "copy" a banner (create a new one) thus setting that those stats to zero.

    Just a thought.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  3. #3
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: Reset Banner Statistics to Zero?

    Quote Originally Posted by econcepts View Post
    I don't see anything in the system for that, but could you simply "copy" a banner (create a new one) thus setting that those stats to zero.

    Just a thought.
    YEah, I tought of that too. I was just checking to see if there was some cool feature that I did not know about...I'm still learning the ins and outs of zencart.

  4. #4
    Join Date
    Jan 2007
    Posts
    103
    Plugin Contributions
    0

    Default Re: Reset Banner Statistics to Zero?

    update banners_history SET banners_shown="0" where banners_id="1";

    run the above code in your admin/sql manager or direct in phpmyadmin to set a particular banner to 0. Just change the banners_id number

    or

    update banners_history SET banners_shown="0" where banners_id IS NOT NULL;

    will update them all

  5. #5
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: Reset Banner Statistics to Zero?

    Quote Originally Posted by bekinky View Post
    update banners_history SET banners_shown="0" where banners_id="1";

    run the above code in your admin/sql manager or direct in phpmyadmin to set a particular banner to 0. Just change the banners_id number

    or

    update banners_history SET banners_shown="0" where banners_id IS NOT NULL;

    will update them all
    The first time I tried that command, I got an error:

    Table 'uv18g1_db.banners_history' doesn't exist

    I then looked at the database and found that my database name has "zen_" attached to the front. So I reran the command as:

    update zen_banners_history SET banners_shown="0" where banners_id IS NOT NULL;

    Worked perfectly! All the displays status numbers returned to zero for all of my banners.

    Filled with confidence, I then ran this command:

    update zen_banners_history SET banners_clicked="0" where banners_id IS NOT NULL;

    This reset all the click status counters for all banners to zero. Cool!

    Thanks for the lesson in sql-ish!

 

 

Similar Threads

  1. v154 Banner Manager View Statistics
    By mhoward in forum Basic Configuration
    Replies: 2
    Last Post: 16 Jan 2016, 01:56 PM
  2. How to reset the Admin statistics?
    By thebigkick in forum General Questions
    Replies: 2
    Last Post: 22 May 2012, 07:46 PM
  3. Reset all prices to zero?
    By Cookiepus in forum General Questions
    Replies: 4
    Last Post: 15 Jun 2011, 04:32 PM
  4. [Done v1.3.9] Monthly Banner Statistics Error
    By 2redline2 in forum Bug Reports
    Replies: 5
    Last Post: 15 Jun 2008, 11:05 AM
  5. Reset records to zero to go live?
    By askjv in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Mar 2008, 07:00 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