protected function _prepareLayout() { $this->setChild('add_select_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Add New Row'), 'class' => 'add add-select-row', 'id' => 'add_select_row_button_{{option_id}}'))); $this->setChild('delete_select_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Row'), 'class' => 'delete delete-select-row icon-btn'))); $this->setChild('add_image_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => '{{image_button_label}}', 'class' => 'add', 'id' => 'new-option-file-{{option_id}}-{{select_id}}', 'onclick' => 'selectOptionType.createFileField(this.id)'))); return parent::_prepareLayout(); }
protected function _prepareLayout() { $helper = Mage::helper('mageworx_customoptions'); $this->setChild('add_select_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Add New Row'), 'class' => 'add add-select-row', 'id' => 'add_select_row_button_{{option_id}}'))); $this->setChild('delete_select_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Row'), 'class' => 'delete delete-select-row icon-btn'))); $this->setChild('add_image_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => '{{image_button_label}}', 'class' => 'add', 'onclick' => 'selectOptionType.addFileRow({{option_id}}, {{select_id}})'))); $this->setChild('add_special_price_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('class' => 'add narrow-add-button', 'label' => 'Add', 'title' => $helper->__('Add Special Price'), 'id' => 'product_option_{{id}}_select_{{select_id}}_price_new', 'onclick' => 'selectOptionType.addSpecialPriceRow({{option_id}}, {{select_id}}, -1, 32000,\'\',\'fixed\',\'\')'))); $this->setChild('add_tier_price_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('class' => 'add narrow-add-button', 'label' => 'Add', 'title' => $helper->__('Add Tier Price'), 'id' => 'product_option_{{id}}_select_{{select_id}}_price_new', 'onclick' => 'selectOptionType.addTierPriceRow({{option_id}}, {{select_id}}, -1, \'\', 32000,\'\',\'fixed\')'))); $this->setChild('option_price_customer_group', $this->getLayout()->createBlock('adminhtml/html_select')->setData(array('class' => 'select product-option-price-customer-group'))->setOptions($helper->getCustomerGroups())); parent::_prepareLayout(); $this->getChild('option_price_type')->setOptions(Mage::getSingleton('adminhtml/system_config_source_product_options_price')->toOptionArray()); return $this; }
protected function _prepareLayout() { $this->setChild('add_select_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Add New Rowwww'), 'class' => 'add add-select-row', 'id' => 'add_select_row_button_{{option_id}}'))); $this->setChild('delete_select_row_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('catalog')->__('Delete Row'), 'class' => 'delete delete-select-row icon-btn', 'id' => 'delete_select_row_button'))); return parent::_prepareLayout(); }