00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Attributes extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes
00035 {
00036 protected function _prepareForm()
00037 {
00038 parent::_prepareForm();
00039
00040 if ($special_price = $this->getForm()->getElement('special_price')) {
00041 $special_price->setRenderer(
00042 $this->getLayout()->createBlock('bundle/adminhtml_catalog_product_edit_tab_attributes_special')
00043 ->setDisableChild(false)
00044 );
00045 }
00046
00047 if ($sku = $this->getForm()->getElement('sku')) {
00048 $sku->setRenderer(
00049 $this->getLayout()->createBlock('bundle/adminhtml_catalog_product_edit_tab_attributes_extend')
00050 ->setDisableChild(false)
00051 );
00052 }
00053
00054 if ($price = $this->getForm()->getElement('price')) {
00055 $price->setRenderer(
00056 $this->getLayout()->createBlock('bundle/adminhtml_catalog_product_edit_tab_attributes_extend')
00057 ->setDisableChild(true)
00058 );
00059 }
00060
00061 if ($weight = $this->getForm()->getElement('weight')) {
00062 $weight->setRenderer(
00063 $this->getLayout()->createBlock('bundle/adminhtml_catalog_product_edit_tab_attributes_extend')
00064 ->setDisableChild(true)
00065 );
00066 }
00067
00068 if ($weight = $this->getForm()->getElement('tier_price')) {
00069 $weight->setRenderer(
00070 $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_price_tier')
00071 ->setPriceColumnHeader(Mage::helper('bundle')->__('Percent Discount'))
00072 );
00073 }
00074 }
00075 }