Monday, 19 January 2015

Change products per page for individual categories in magento

Change products per page for individual categories in magento

 all your default values are set in "Products per Page on Grid Allowed Values" in Admin > system config > Catalog > Catalog > Frontend

this is pagination allow all the category page in magento.

but you can change with


Admin > Category > Manage Category > {Select your Category} > Custom Design > Custom Layout

Add this code

<reference name="product_list_toolbar">
  <action method="addPagerLimit"><limit>15</limit></action>
  <!--action method="setDefaultGridPerPage"><limit>15</limit></action-->
  <!--action method="setDefaultListPerPage"><limit>15</limit></action-->

this avalibale for every category.

you can also change here


        <reference name="product_list_toolbar">
            <action method="addPagerLimit"><mode>grid</mode><limit>15</limit></action>
            <action method="addPagerLimit"><mode>list</mode><limit>15</limit></action>
        <reference name="product_list_toolbar">
            <action method="addPagerLimit"><mode>grid</mode><limit>30</limit></action>
            <action method="addPagerLimit"><mode>list</mode><limit>30</limit></action>

here category_15(here 15 is category id) please note that.

No comments:

Post a Comment

Thank You For Comment