Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Reset Bestsellers List

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-03-2006, 12:13 PM
 
oates oates is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 113
 

Default 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.
__________________
X-CART 4.5.0
MySQL - 5.1.63
PHP 5.3.9
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
Dedicated Cloud Server
Reply With Quote
  #2  
Old 10-23-2006, 01:51 PM
  Blazeland's Avatar 
Blazeland Blazeland is offline
 

Advanced Member
  
Join Date: Mar 2005
Posts: 46
 

Default Re: Reset Bestsellers List

Same here! Anyone?
__________________
X-Cart Version 4.1.10
Reply With Quote
  #3  
Old 11-21-2006, 06:37 PM
 
oates oates is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 113
 

Default Re: Reset Bestsellers List

raised!
__________________
X-CART 4.5.0
MySQL - 5.1.63
PHP 5.3.9
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
Dedicated Cloud Server
Reply With Quote
  #4  
Old 12-19-2006, 05:59 PM
 
oates oates is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 113
 

Default Re: Reset Bestsellers List

maybe it can't be done!
__________________
X-CART 4.5.0
MySQL - 5.1.63
PHP 5.3.9
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
Dedicated Cloud Server
Reply With Quote
  #5  
Old 12-19-2006, 06:31 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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)
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #6  
Old 12-20-2006, 08:26 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default 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
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #7  
Old 12-21-2006, 07:04 AM
 
oates oates is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 113
 

Default 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.
__________________
X-CART 4.5.0
MySQL - 5.1.63
PHP 5.3.9
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
Dedicated Cloud Server
Reply With Quote
  #8  
Old 12-24-2006, 11:40 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Reset Bestsellers List

check http://forum.x-cart.com/showthread.php?p=154185#post154185 for the mod
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #9  
Old 01-04-2007, 10:35 AM
 
oates oates is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 113
 

Default 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
__________________
X-CART 4.5.0
MySQL - 5.1.63
PHP 5.3.9
Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
Dedicated Cloud Server
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:41 AM.

   

 
X-Cart forums © 2001-2020