is it possible to change layout of product detail page of configurable products via custom modules instead of changing config.xml and other core files .

please prodive better wayto do this


Hi you can change easy by layout handler. when magento is call a configurable products it add PRODUCT_TYPE_configurable handler to current layout


 <!-- Mage_Catalog -->
        <reference name="root">
            <action method="setTemplate"><template>page/2column-left.phtml</template></action>

create local.xml at app/design/frontent/yourpackage/yourtempate/layout/ and add this code

  • can i do it vai module instead of changing code file – mcoder Nov 19 '14 at 17:22
  • yes.............. – Amit Bera Nov 19 '14 at 17:23
  • how can update answer – mcoder Nov 19 '14 at 17:27
  • for configurable product i want to call product.info.options.wrapper to left of image how can i do it . via changes in config.xml – mcoder Nov 19 '14 at 19:08

Go app/design/frontent/yourpackage/yourtempate/layout/catalog.xml

Search for "catalog_product_view"

You can change template name here in place of "2columns-left.phtml"

<reference name="root">
            <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
  • Patil check question properly.. the question is indicate that the the template are only apply on configurable product – Amit Bera Dec 8 '15 at 12:33

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.