Prince Kumar
Prince Kumar

Reputation: 498

how to change the design of product view page to 2columns-right in magento

I want to change the design of my product view page to 2columns-right. For that I changed in app/design/frontend/default/mytheme/catalog.xml to 2columns-right. The code is

<reference name="root">
            <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
        </reference> 

After clearing the cache also,design is not changing it is still in 2columns-left panel. In admin also, set no to apply to products,then also it is not changing.

If anyone have any idea to change the design in 2columns-left for detail page, then please help me. Thanks!

Upvotes: 1

Views: 1533

Answers (2)

Rajeev K Tomy
Rajeev K Tomy

Reputation: 2214

create a local.xml file in layout directory and put this code inside it

<layout>
    <catalog_product_view>
          <reference name="root">
            <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
           </reference> 
    </catalog_product_view>
</layout>

Upvotes: 1

MeenakshiSundaram R
MeenakshiSundaram R

Reputation: 2837

Try like this

<catalog_product_view>
    <reference name="root">
                <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
    </reference>
</catalog_product_view>

Upvotes: 1

Related Questions