I have 2 or 3 different bundle-type products. Generally they all appear the same in the catalog, with differing attribute sets showing/hiding available options.
It seems there will eventually be a bundle-type product with a vastly different template using a 1-column design as opposed to a 2-columns-right template. My first thought was to use custom layout xml, but all products added to this attribute set in the future will need the template.
Best Answer
By defining an observer to listen for
controller_action_layout_load_before
we are able to dynamically add layout handles on product pages based on the loaded product's attribute set:And now the following will work in a layout:
Code and examples sourced: http://magebase.com/magento-tutorials/creating-custom-layout-handles/