php - Is it possible use a custom 'select' template for bunlded products in Magento? -


i'm creating specific bundled product, needs few custom changes select , checkbox templates.

supposedly add custom update layout in product, nothing seems able target new select.phtml template.

<reference name="product.info.options.wrapper">  <!-- works -->  <block type="bundle/catalog_product_view_type_bundle" name="product.info.bundle.options" as="type_bundle_options" template="bundle/catalog/product/view/type/bundle/*custom*.phtml">   <action method="addrenderer">     <type>select</type>     <block>bundle/catalog_product_view_type_bundle_option_select</block>       <!-- doesn't work -->     <template>*custom_folder*/bundle/catalog/product/view/type/bundle/option/*custom*-select.phtml</template>   </action>  </block>  <action method="insert"><block>product.info.bundle.options</block></action> </reference> 

looking @ catalog.xml, looks checkboxes, , selects, etc ... point template, not in bundle.xml.

and, can of course overwrite default templates in theme/template/bundle/catalog/...etc../option/select.phtml ... need specific template 1 product ... not of them.

i'm hoping has insight this? maybe i'm going wrong way?

etc/config.xml

<frontend>     <events>         <core_layout_block_create_after>             <observers>                 <change_bundle_select_template>                     <type>singleton</type>                     <class>company_module/observer</class>                     <method>bundlechangetemplate</method>                 </change_bundle_select_template>             </observers>         </core_layout_block_create_after>     </events> </frontend> 

model/observer.php

public function bundlechangetemplate($observer) {     if ($observer->getblock() instanceof mage_bundle_block_catalog_product_view_type_bundle_option_select) {         $observer->getblock()->settemplate('bundle/catalog/product/view/type/bundle/option/sel.phtml');     } } 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -