Magento product report resource collection allows you to get most popular products based on different options for example total number of product views. The code below will show you how to load magento's most viewed products collection.
functions we will use: addViewsCount, setOrder
Let's load this resource collection first like this:
Magento product report resource collection allows you to get most popular products based on different options for example total number of product orders.
functions we will use: addOrdersCount, setOrder
Let's load this resource collection first like this: