Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to tell the product page which template to use? 
 
winzippy
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-02-08
Rochester, NY, USA
 

Currently, I have a product using the 2 column layout. I want to force all products to use 1column.phtml, but I can’t seem to find the setting.

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dan_w
Sr. Member
 
Total Posts:  290
Joined:  2008-01-04
 

You should be able to specify this in your layout->catalog.xml. Look for
<!--
Product view
-->

What follows after this is the layout for the product page. Look for:
<action method="setTemplate">

Here’s where you define the product page template.

 
Magento Community Magento Community
Magento Community
Magento Community
 
PHOENIX
Guru
 
Avatar
Total Posts:  549
Joined:  2007-12-19
Stuttgart, Germany
 

Is this possible per category?

If I change the page layout in the “custom design” tab of the category settings the category design will change but the products (detail view) still use the default page template specified in the catalog.xml…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top