Magento: Pagination Disappears On The Search Results Page After Upgrading to 1.4

Magento PaginationWe recently posted a guide on how to upgrade to Magento 1.4 which solves the most common issues people are having. But there’s another common problem that is not covered in that post: the pagination is not present on the toolbar of the search results page. Here’s how to solve the problem:

1. Open up catalogsearch.xml located under app/design/frontend/default/yourthemename/layout/ and find the code below under <catalogsearch_result_index>:

<reference name="content">
<block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
<action method="setColumnCount"><count>4</count></action>
</block>
<action method="setListOrders"/>
<action method="setListModes"/>
<action method="setListCollection"/>
</block>
</reference>

2. Then just above <action method="setColumnCount"><count>4</count></action> paste this code:

<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
</block>
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action>

3. Then go down to <catalogsearch_advanced_result> and paste the same code above the column count.

4. Of course don’t forget to refresh Magento cache.

Any questions feel free to post them in the comments below!

Don’t forget! Subscribe and follow

Be sure to subscribe to the feed and follow us on Twitter for more tips, resources, and giveaways!

Related Posts:

3 Comments

  • Magento Expert
    Works perfect! Thanks!
  • Arif
    go to /app/design/frontend/default/THEME/layout/catalogssearch.xml

    under
    find

    replace

    product_list_toolbar

    do the same for

  • Nicolas
    Thanks, works great !

Leave a Reply

Submit