X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Reset Bestsellers List (https://forum.x-cart.com/showthread.php?t=25485)

oates 10-03-2006 12:13 PM

Reset Bestsellers List
 
Hi,

I was trying to locate on the backend (and then through searching the forum) for a way to reset 'bestsellers' so everything starts at zero again as our bestsellers doesn't reflect current sales anymore.

Blazeland 10-23-2006 01:51 PM

Re: Reset Bestsellers List
 
Same here! Anyone?

oates 11-21-2006 06:37 PM

Re: Reset Bestsellers List
 
raised!

oates 12-19-2006 05:59 PM

Re: Reset Bestsellers List
 
maybe it can't be done!

inebriate 12-19-2006 06:31 PM

Re: Reset Bestsellers List
 
its doable, i believe it just requires that you reset your products' sales stats in your sql database (backup your database before attempting, just in case)

inebriate 12-20-2006 08:26 PM

Re: Reset Bestsellers List
 
I am coming up with a solution for this which I am testing out at the moment

instead of resetting the bestsellers manually, it is a weekly bestsellers (which can be changed to monthly very easily)...it makes use of the advanced statistics module, php's date function, and a new table (2 cells) to keep track of when it was last updated

oates 12-21-2006 07:04 AM

Re: Reset Bestsellers List
 
that's fantastic, as it would reflect what is 'hot' more than what statistically has been best over a period of years.

inebriate 12-24-2006 11:40 PM

Re: Reset Bestsellers List
 
check http://forum.x-cart.com/showthread.php?p=154185#post154185 for the mod

oates 01-04-2007 10:35 AM

Re: Reset Bestsellers List
 
Thanks

Tried line by line, on the 2nd line you get an error, tried altogether got

PATCH RESULTS

SQL PATCH FAILED AT QUERY:
CREATE TABLE `xcart_lastupdate` (`period` INT( 2 ) NOT NULL ,`year` INT( 4 ) NOT NULL) UPDATE xcart_lastupdate SET week=51 UPDATE xcart_lastupdate SET year=2006

PATCH LOG


All times are GMT -8. The time now is 05:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.