1

My default view is List view, how can I change based on category.

1

Change it under custom design tab for the category you want to force the grid / list view by entering the following in the Custom Layout Update:

Grid View:

<reference name="product_list_toolbar">
    <action method="setData">
        <key>_current_grid_mode</key> 
        <value>grid</value>
    </action>
</reference>

List View:

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

You can also do this with the help of this free extension.

Hope this helps!!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.