Last Updated: February 25, 2016
·
8.556K
· RajeshKumar427

How to show recently viewed products on specified pages in Magento

This is one of the most common features in Magento asked by the clients from a Magento developer. It must have some customizations in terms of number products to be displayed and location of it. I use to teach to my Magento training students in some easy to follow steps.
There is an option under CMS->Widgets that does magic actually. Widgets option in Magento is a feature that collects a number of useful information blocks from database automatically to show in a store.
You can create ‘recently viewed products’ from Widgets option too but how would you show in a particular region on a website of a particular page is little complex. You can display a widget directly on a particular page or you can insert a widget in a ‘Block’ and then can insert that block in a page or you can insert a widget directly into a CMS Page too.
Let me explain the best and most suitable option from all. I would refer to use Widgets directly to show recently viewed products on specific pages in Magento. Follow the following given steps please:

  1. Click on CMS->Widgets

  2. Click on the ‘Add new widget instance’

  3. Select Type->Recently Viewed Products

  4. Select Design Package Theme->Your Theme

  5. Click on Continue Button

  6. In Frontend Properties

    a.   Give the Widget Instance Title
    b.   Assign to store views->All Store Views
    c.   Scroll a little down and you will notice a ‘Layout updates’ section
    
       i.    Click on Add Layout Updates
       ii.   Display On -> Specified Page (you can select any other option too)
               1.    Page->(Select your desired page)
              2. Block Reference->(Select your reference to show it)
  7. In Widget Options

    a.  Set ’Number of Products to display’
  8. Click on ‘Save’ button and check your specified page. Don’t forget to clear the cache if you don’t see anything.

Thanks
Let me know if you have any doubt in comment please.

For More Information Visit: http://www.admecindia.co.in/blog/problem-showing-recently-viewed-products-magento