Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to give 'view all' in pagination (magento)
    text
    copied!<p>I am using magento 1.7.In my home page I want to display product in different categories with pagination. I tried the following code, and pagination is working.How to give 'view all' here.</p> <pre><code>&lt;reference name="left"&gt; &lt;block type="catalog/layer_view" before="-" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/&gt; &lt;/reference&gt; &lt;reference name="root"&gt; &lt;block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"&gt; &lt;/block&gt; &lt;/reference&gt; &lt;reference name="content"&gt; &lt;block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"&gt; &lt;action method="setColumnCount"&gt;&lt;column_count&gt;6&lt;/column_count&gt;&lt;/action&gt; &lt;action method="setProductsCount"&gt;&lt;count&gt;0&lt;/count&gt;&lt;/action&gt; &lt;block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"&gt; &lt;block type="page/html_pager" name="product_list_toolbar_pager" template="catalog/product/list/pager.phtml"/&gt; &lt;action method="setDefaultListPerPage"&gt;&lt;limit&gt;15&lt;/limit&gt;&lt;/action&gt; &lt;action method="setDefaultGridPerPage"&gt;&lt;limit&gt;6&lt;/limit&gt;&lt;/action&gt; &lt;action method="addPagerLimit"&gt;&lt;mode&gt;grid&lt;/mode&gt;&lt;limit&gt;6&lt;/limit&gt;&lt;/action&gt; &lt;/block&gt; &lt;action method="addColumnCountLayoutDepend"&gt;&lt;layout&gt;two_columns_left&lt;/layout&gt;&lt;count&gt;6&lt;/count&gt;&lt;/action&gt; &lt;action method="setToolbarBlockName"&gt;&lt;name&gt;product_list_toolbar&lt;/name&gt;&lt;/action&gt; &lt;/block&gt; &lt;/reference&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload