Product Category Layout – Change Layout for Specific Category

categorylayoutproduct

I got a specific category and I want to change the layout for all the products the category contain.

If I want to change the layout(productpage) for all categories I need to edit the file app\design\frontend\rwd\default\template\catalog\product\view.phtml.
But I just want to edit the layout for one category( the productpage layout)

I saw something with CategoryID but I don't really get it. Hope you can help me!

Best Answer

You can achieve this in admin panel itself.

Navigate to

admin > catalog > manage category > select your category

Then go to custom design tab.

Apply To Product => yes

Check this

And add below code in custom layout to change product view template.

<reference name="product.info">
   <action method="setTemplate"><template>your-template-file.phtml</template></action>
</reference>
Related Topic