jcadima
3/13/2015 - 6:52 PM

Magento product grids, product page REFERENCE

Magento product grids, product page REFERENCE

The cart page
file path: app/design/frontend/base/default/template/checkout/cart.phtml
layout handle: <checkout_cart_index>

the login area: app/design/frontend/base/default/template/customer/form/login.phtml
layout handle: <customer_account_login>

the user account registration page: app/design/frontend/base/default/template/customer/form/register.phtml
layout handle: <customer_account_create>




Product Grid
Let's suppose that we want to set the main template for the default category view to one column; in this case, we have to insert the action setTemplate into the catalog_category_default handle in the following manner:
   <catalog_category_default>
     <reference name="root">
     <action method="setTemplate">
       <template>page/1column.phtml</template>
     </action>
     </reference>
   </catalog_category_default>
   
   
   
If we want to set a different template, for example, two columns with the right-hand side sidebar for the layered categories, we will have to set the action in the other handle as follows:
   
   
   <catalog_category_layered>
     <reference name="root">
     <action method="setTemplate">
       <template>page/2columns-right.phtml</template>
     </action>
     </reference>
   </catalog_category_layered>
   
   
Product Page:
If you decide to set to 1 column, change the root template to the 1column template as given in the following code:
   <catalog_product_view>
     <reference name="root">
       <action method="setTemplate">
         <template>page/1column.phtml</template></action>
     </reference>
   </catalog_product_view>