Created
May 30, 2012 13:58
-
-
Save nedmas/2836507 to your computer and use it in GitHub Desktop.
Magento Snippet - Set the Catalog Product Grid column count
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<layout> | |
<catalog_category_default translate="label"> | |
<reference name="content"> | |
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"> | |
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> | |
<action method="setColumnCount"><columns>4</columns></action> | |
</block> | |
</block> | |
</reference> | |
</catalog_category_default> | |
<catalog_category_layered translate="label"> | |
<reference name="content"> | |
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"> | |
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> | |
<action method="setColumnCount"><columns>4</columns></action> | |
</block> | |
</block> | |
</reference> | |
</catalog_category_layered> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment