On my product listing page, I need to change the display of Toolbar and Pager.
On top, I want to display Sort by option while on bottom I need to display Pagination
How can I achieve this ?
Please Guide.
Thanks.
pagertoolbar
On my product listing page, I need to change the display of Toolbar and Pager.
On top, I want to display Sort by option while on bottom I need to display Pagination
How can I achieve this ?
Please Guide.
Thanks.
Best Answer
One way of solving your issue is by hiding and showing toolbar HTML elements
For top toolbar your CSS should look like the following:
For bottom toolbar your CSS should look like the following:
Another solution is to create a new toolbar template file for bottom and keep pager code and remove sort code and then call toolbar bottom template in product listing. Follow the following steps to accomplish this solution:
Copy
toolbar.phtml
fromapp/design/frontend/base/default/template/catalog/product/list/toolbar.phtml
to your custom theme templateapp/design/frontend/custom_package/custom_template/product/list/toolbar.phtml
Make a copy of
toolbar.phtml
and name ittoolbar-bottom.phtml
Edit
toolbar.phtml
and remove pager codeEdit
toolbar-bottom.phtml
and remove sort codeCopy
list.phtml
fromapp/design/frontend/base/default/template/catalog/product/list.phtml
toapp/design/frontend/custom_package/custom_template/catalog/product/list.phtml
Edit
list.phtml
and replace the following code:Existing code:
With this code: