Facebook fans

Latest from Twitter

Magento – Add different toolbars in product listing page

Posted date: 14 Sep 2011 | Posted by: admin | 0 comments

In one project, i needed to create a top toolbar and a bottom toolbar to make the navigation more easily and beautiful in the product listing page. The problem is the styles of the top toolbar need to be different from the one of the bottom toolbar. Also, only the bottom toolbar has a pager and a back to top botton. By default, Magento just supports the same styles and elements for both of toolbars.

After a while, i found the way to do and applied it to this project. So now, i will show you guys who have the same problem with Magento toolbars.

In the app/design/frontend/default/default/template/catalog/product/list.phtml file, from the bottom, replace the following line (keep the line in the top):

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

by

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

Of course, you need to create the toolbar_bottom.phtml file in the catalog/product/list folder (copy from the toolbar.phtml file and change the content, also styles to whatever you like!)

If you have any problem, feel free to comment here!

Best,

It's useful? Like this article!

Comments are closed.

Share this

Related posts

Pinterest Fan Box – Add Pinterest Followers to your Magento site image

Pinterest Fan Box, do you know how to add your Pinterest...

7 Apr 2012
Pinterest Feeds – Add Pinterest Pin Board to Magento Site image

Pinterest Feeds to Magento sites, how to do the...

23 Mar 2012
Pinterest Magento Linker image

Pinterest is one of the hottest social networks and is...

14 Mar 2012
Debugging magento templates image

Developing in Magento without these debugging tips can be...

14 Oct 2011

Mirage Design @ 2011 | Web development, Website design, Magento development, Wordpress development

Pinterest Tutorial   Ty so bong da   Tim chung cu