Search code examples
xmllayoutmagento

How can I change Magento's default grid per page in my local.xml?


New to magento here, I have figured out how to use my local.xml to do just about all the changes I need but the grid view has me stumped. I have changed my grid view to 5 columns, so the default 9 items displayed looks sloppy. I want to set it to a multiple of 5. Looking through catalog.xml I figured this should do it:

<reference name="product_list_toolbar_pager">
    <action method="setDefaultGridPerPage"><limit>15</limit></action>
</reference>

within both category_catalog_default and category_catalog_layered handles, but no dice. I am struggling with Magento's scattered documentation, but actually coming to appreciate the whole layout thing.

I'm on 1.5.1, if that makes a difference.


Solution

  • Took me a long time to figure this one out. As it turns out, the pager values are set through the admin. System > configuration > catalog > catalog > frontend > "Products per Page on Grid Default Value"