Customize Magento toolbar for list page

By | November 19, 2014

Some times we need to show the toolbar as per our need ,But magento had show same tool bar at the bottom and top of listing page.

so, in order to change the toolbar we can customize in such a way that top toolbar will be different and bottom toolbar will be different.

1) First open list.phtml,you will find getToolbarHtml() function at the top and at the bottom in order to change the bottom toolbar we just add the following code

Replace

1
<?php //echo $this->getToolbarHtml() ?>

With

1
<?php  echo $this->getToolbarBlock()->setTemplate('catalog/product/list/toolbar_top.phtml')->toHtml(); ?>

2) Second create the new file “toolbar_top.phtml” in catalog/product/list and add the customize code as per the need.

Hope this will help you and you will enjoy!

Leave a Reply