Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('customoptions/options-edit-tab-options-type-select.phtml');
 }
Exemplo n.º 3
0
 public function getPriceTypeSelectHtml()
 {
     $this->getChild('option_price_type')->setData('id', 'product_option_{{id}}_select_{{select_id}}_price_type')->setName('product[options][{{id}}][values][{{select_id}}][price_type]');
     return parent::getPriceTypeSelectHtml();
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('customoptions/catalog-product-edit-options-type-select.phtml');
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('edge/customoptionimage/product/edit/options/type/select.phtml');
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('davidjordan/customtagoption/catalog/product/edit/options/type/select.phtml');
 }