Calcetines Extreme

Calcetines Extreme
Take care of you using the best socks

Sunday, June 16, 2013

Change / Customize Magento Toolbar for list page


We found that inside list product views on Magento, usually on categoryview.phtml we found something like that: $this->getToolbarHtml() but we need to change the default toolbal value for our own customized one.


As sure that all of you know, the toolbar is located inside path catalog/product/list/toolbar, ok, just copy default toolbar and create an customize with your needs, once you have your own toolbar foolow the next steps:

Search on top of bottom for:  

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

and replace it with:

//echo $this->getToolbarHtml()
echo $this->getToolbarBlock()->setTemplate('catalog/product/list/toolbar_yourbar.phtml')->toHtml(); 

Hope this hep you!