Reputation: 43
I am trying to make module that switches diffrent .phtml of productview depend on attributeset name. I dont know witch file is responsible for rendering productview.
Upvotes: 0
Views: 67
Reputation: 2947
It is usually Magento Block that render template. In your case productivew is rendered by
Mage_Catalog_Block_Product_View.
You can easily figure this out by enabling template_hints
and template_hints_blocks
. To enable these to option follow steps below:
template_hints
and template_hints_blocks
is applicable at website level only)Upvotes: 1
Reputation: 311
you can rewrite this class:
Mage_Catalog_Block_Product_View
and then you can add your own logic to it to switch to another template, not the standard
catalog/product/view.phtml
Upvotes: 0