Post by johnnyfresh » Thu Mar 04, 2010 11:37 am

Can anyone give me some details on how the bestseller items are calculated ? I combed the db and nothing jumped out at me. Was wondering how an item is deemed a best seller and where that info is stored.


Thanks.

Johnny

Newbie

Posts

Joined
Thu Mar 04, 2010 11:26 am

Post by rph » Thu Mar 04, 2010 12:31 pm

From what I can tell the cart checks /system/cache/ for the product.bestseller cache file. If it's there and populated it pulls it. If it's not it creates one pulling the data from order_product.

The relevant code is in /catalog/model/catalog/product.php under the getBestSellerProducts function.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by dimko » Wed Oct 19, 2011 6:52 am

It pulls and counts the product_id from the order_product table.

Using OpenCart v1.5.1.3


Active Member

Posts

Joined
Sun Sep 25, 2011 2:10 am
Who is online

Users browsing this forum: No registered users and 4 guests