Magento: Pagination Disappears On The Search Results Page After Upgrading to 1.4
- Category: questions, web development
We 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!
under
find
replace
product_list_toolbar
do the same for
error can be visible at: http://artliberation.org/vec888/index.php/catalogsearch/result/?q=noise when you click next page in results there will be described problem.
I did the exact same thing with my catalogsearch.xml but it didn’t work. I also tried other stuff. What could be the problem? should I also edit the code in the default theme? I hope you can help me.