 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
October 13th, 2008, 10:11 AM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2003
Posts: 16
| How to rebuild stats?
We had a user post a classified with a price of $10,000,000,000 and then marked it sold. It, obviously, trashed any meaningful information that was showing in the stats table for the number of items sold and the value of items sold. We've since deleted the ad so that it is no longer in the system but the stats cache has not been updated to reflect this. Is there a mysql query I can run to force a rebuild of the status table?
Thanks!
Mark
Last edited by mferguson; October 13th, 2008 at 10:28 AM.
|
| |
October 13th, 2008, 05:49 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
No there is no query for this but you could run some query to reduce the stats table by 1 product and 10,000,000,000 like so
UPDATE cp_stats SET amt_sold=(amt_sold-10,000,000,000), ads_sold=(ads_sold-1) WHERE id=1;
|
| |
October 13th, 2008, 05:59 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2003
Posts: 16
|
Thanks for the follow up Chuck. Given the cp_products table is there a way to determine what has been marked as sold and retrieve the price so I can recalculate the total sold that way? That way I can calculate it accurately and get back to a realistic number.
We have 400+ sales through our marketplace but when this guy added his item for $10,000,000,000 it reset the total value to that same number so I end up with $0.00 if I subtract out that number.
I'm comfortable with a mysql update statement to reset the number of sales and amount sold I'd just like to know how to determine what has been sold in the cp_products table.
Thanks for any additional guidance you can offer!
Mark
|
| |
October 13th, 2008, 06:15 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
No sorry no way to do that as products get deleted over 2 weeks old that are expired.
|
| |
October 19th, 2008, 10:55 AM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2003
Posts: 16
|
Bummer...thanks for the update though
|
| |
October 19th, 2008, 11:32 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
Not a problem glad to answer for you even if its a bummer
|
| |
January 29th, 2009, 10:46 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Apr 2002
Posts: 423
|
I now have the same problem. Would be nice if we could regenerate that stat.
|
| |
January 30th, 2009, 08:47 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
There is no way to regenerate stats since ads are deleted after being expired. One of the processed when expiring auctions selling ads is to update the stats. Now after an ad is gone it is deleted by the system hense there is nothing to rebuilt stats from.
|
| |
February 3rd, 2009, 04:53 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Apr 2002
Posts: 423
|
Ok, I found the offending classified and deleted it. Now how do I go and correct the total sold amount by the amount of that one classified?
|
| |
February 3rd, 2009, 08:17 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Apr 2002
Posts: 423
|
I tried editing the amt_sold entry in the pp_stats table to what it should be, but it never gets reflected on my classifieds page.??
|
| |
February 3rd, 2009, 10:03 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
If you edited the stats table to another amount it will be reflected on your index page. Remember if you are using the category cache it might take a little to reflect that change.
|
| |
February 3rd, 2009, 10:50 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Apr 2002
Posts: 423
|
Got er done, thanks.
|
| |
February 3rd, 2009, 11:45 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
Have a good day.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Rebuild a thumbnail | aacircle | Photopost Pro How Do I...? | 2 | March 12th, 2007 08:24 PM | | 2.91 Rebuild all thumbnails | larrywcc | ReviewPost Bug Reports | 1 | August 1st, 2006 08:20 AM | All times are GMT -5. The time now is 11:40 AM. | |