Magento 1.7: Remove the pagination at the top and keep the pagination at the bottom

I am using magento 1.7. On my homepage, each category has pagination, and pagination is displayed at both the top and bottom of each category. I want to remove the pagination at the top and keep the pagination at the bottom.

To enable pagination, I used the following code,

CMS> Pages> Design> XML Layout Update

<reference name="content"> <block type="catalog/product_list" name="home" template="catalog/product/list.phtml"> <action method="setCategoryId"><category_id>137</category_id></action> <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action> <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><count>5</count></action> </block> </reference> 
+4
source share
2 answers

Hi to use pagination gettoolbarhtml () check the following file

/app/design/frontend/default/your_theme/template/catalog/product/list.phtml

comment below line

// echo $ this-> getToolbarHtml ()

+7
source

You can achieve your goal in approximately the following way:

 <reference name="your_parent_block_name"> <remove name="block_name_you_want_to_remove"/> </reference> 
0
source

Source: https://habr.com/ru/post/1444042/


All Articles