Blog

Display Most Viewed Products In Magneto

One of my client wants his visitor to see most viewed item on product detail page “view.phtml”, so i found following solution, it will return array of product just use this array to display most view products. [php] <?php $productCount = 5; $storeId = Mage::app()->getStore()->getId(); $products = Mage::getResourceModel(‘reports/product_collection’) ->addAttributeToSelect(‘*’) ->setStoreId($storeId) ...

Read More