The "Recently Viewed Products" widget can be added to any CMS page or Static Block by using markup tags.

 

Adding Recently Viewed Products to CMS pages

  1. In the Admin panel, navigate to Cms > Pages and open the CMS page where you want to insert the widget.
  2. Click the Content tab.
  3. Insert the following markup tag in the Content area:
    {{widget type="reports/product_widget_viewed" page_size="10" template="reports/widget/viewed/content/viewed_grid.phtml"}}
  4. Click the Save Page button
  5. Flush Magento cache

 

Adding Recently Viewed Products to a Static Block

  1. In the Admin panel, navigate to Cms > Static Blocks and open the static block where you want to insert the widget.
  2. Insert the following markup tag in the Content field:
    {{widget type="reports/product_widget_viewed" page_size="10" template="reports/widget/viewed/content/viewed_grid.phtml"}}
  3. Click the Save Block button
  4. Flush Magento cache

Adding Recently Viewed Products to a template

 

To add the Recently Viewed Products widget to a .phtml file, use the following code:

<?php echo $this->getLayout()->createBlock('reports/product_viewed')->setTemplate('reports/widget/viewed/content/viewed_grid.phtml')->toHtml(); ?>