Thursday, October 25, 2012

add custom product view page for custom product type in magento


>> Suppose you've created a new Product Type "custom". I've posted how to add new product type in magento. You want to use a different template for those product. follow the instruction ::

  You can directly update in the catalog.xml or you can create a custom module by using Module Creator.

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