0

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

2 Answers 2

1

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

ex:

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

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

4
  • can i do it vai module instead of changing code file
    – mcoder
    Nov 19, 2014 at 17:22
  • yes..............
    – Amit Bera
    Nov 19, 2014 at 17:23
  • how can update answer
    – mcoder
    Nov 19, 2014 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, 2014 at 19:08
0

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>
        </reference>
1
  • Patil check question properly.. the question is indicate that the the template are only apply on configurable product
    – Amit Bera
    Dec 8, 2015 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.