Showing posts with label Magento get recently viewed products. Show all posts
Showing posts with label Magento get recently viewed products. Show all posts

Monday, 27 April 2015

Display recently viewed products on detail page magento


Display recently viewed products on detail page magento

Open the catalog.xml and Add below block under the <catalog_product_view><reference name="content">

<block type="reports/product_viewed" name="reports.product.viewed" as="recently_viewed" template="reports/product_viewed.phtml">
      <action method="setColumnCount"><columns>5</columns></action>
      <action method="setItemLimit"><type>recently_viewed</type><limit>5</limit></action>
</block>

Now open app\design\frontend\default\bonitto\template\catalog\product\view.phtml and add below code where you want recently viewed products

<?php echo $this->getChildHtml('recently_viewed') ?>