Few weeks ago I wrote a little Magento Bestseller module. This one is suppose to be relatively fast and light on database. I’ve been getting quite a loot feedback on it, plus some questions on how to change the module, how to do that and so on. For those interested in modifying the modules to cover cases like “Is there a way to make this relative to the category that you are currently viewing?” here are a few screenshots to get you started.
Here is the default look of getArrayOfBestsellers method.
Here is the default look of getBestsellers method.

And here is one of the area you can modify to get instant results.
So, for questions like “Is there a way to make this relative to the category that you are currently viewing?”, you could grab request object, get the id of currently active (the one being viewed) category and do basic if logic. I will not go into the details of how to get request object, how to get category id and so on.
Hope this helps clear out some things for those who wish to modify the plugin.



Recent Comments