I'm using a custom prestashop bestsellers module. I don't know how it figures best sellers but it isn't based on best sellers. I've included a screenshop of my bestseller module and my best product sales figures and you can see that the data doesn't match up. Only one item is actually in the correct postion. I will also include the module that I am using as an attachment. I want the code rewriten so that it shows best sellers with the highest number of sales in the top position and descending down.