Various view.phtml files for group & bundle product types in magento

I'm trying to make some design changes for grouping, grouping, and configurable product types on the product page itself. Until now, I have done this with the appointment of various templates for products, but at the moment this is not an option, unfortunately ...

I already developed custom_view.phtml and custom_view2.phtml for products like bundle and group, but I don't know how to make magento to render these phtml files according to these product types ...

can someone help me with this problem?

Thank...

+5
source share
3 answers

I know this topic is somewhat old, but I also needed an answer to this question, and this helped me:

bundle.xml,

<PRODUCT_TYPE_bundle translate="label" module="bundle">

:

    <reference name="product.info">
        <action method='setTemplate'><template>path/to/your/template/view.phtml</template></action>
    </reference>

, :)

+9

/app/design/frontend/default/default/layout/catalog.xml

:

<PRODUCT_TYPE_grouped translate="label" module="catalog>
  ...
</PRODUCT_TYPE_grouped>

XML xml . XML . , :

<reference name="content">
  <block type="catalog/product_view" name="product.info" template="path/to/your/custom_view2.phtml">
</reference>
+2

I did for custom check please

<PRODUCT_TYPE_configurable translate="label" module="catalog">
    <label>Catalog Product View (Configurable)</label>
    <reference name="product.info">
        <action method="setTemplate">
            <template>catalog/product/configurableview.phtml</template>
        </action>
    </reference>
</PRODUCT_TYPE_configurable>
0
source

All Articles