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') ?>

2 comments:

Anonymous said...

Excellent blog here! Also your web site so much up very fast!
What web host are you the use of? Can I get your affiliate hyperlink in your
host? I wish my website loaded up as fast as yours lol

My web site - CT Limo

Anonymous said...

good job thanks