Magento Category XML updates

Using the custom layout field on category pages can provide some great flexibility when it comes to creating categories that need to be different to the rest of the website.

Change the template of your category, ensure that the file exists in /template/page/

<reference name=”root”>
<action method=”setTemplate”><template>page/christmas.phtml</template></action>
</reference>

 

Change the category view to be list view by default for that page

<reference name=”product_list_toolbar”>
<action method=”setData”><key>_current_grid_mode</key><value>list</value></action>
</reference>

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.