We are currently batting around the idea of how to show best selling products on one of the sites we are building. Thought I would throw out the couple directions we have thought of and see if anyone else has a better idea.
Option 1:
Cron job that runs nightly going through all of the new orders looking at SKUs and quantity.
Store it in a BestSelling table that would consist of product id & total sold number.
Create a template tag that would display the products
Option 1.1:
Cron job that runs nightly going through all of the new orders looking at SKUs and quantity.
Cached object instead of a database table
Create a template tag that would display the products
Option 2:
Add a field on the product or product variation that gets incremented every time that product is purchased.
Create a template tag that would display the products
Option 3:
Create a template tag that would do all of the look ups, cache it and do the products