Let’s assume that you installed an extension to sort by Best Selling products, but you’re not completely sure if it’s working properly or if it’s fetching the right products to your list for some specific categories.

With the following script you can check that.

First of all, place this script on your Magento 1.x root directory:

Name it “test.php” for instance, and then execute the following from your command line tool:

Then you should display your best selling products for the specified category.

Leave a comment