Erm*_*bel 4 pagination magento magento-1.7
我正在使用magento 1.7.在我的主页中,每个类别都有分页,分页显示在每个类别的顶部和底部.我想从顶部删除分页并在底部保持分页.
为了包括分页,我使用了以下代码,
CMS>页面>设计>布局更新XML
<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>
Run Code Online (Sandbox Code Playgroud)
小智 7
你好分页使用gettoolbarhtml()检查以下文件
/app/design/frontend/default/your_theme/template/catalog/product/list.phtml
评论如下
// echo $ this-> getToolbarHtml()