protected function _beforeToHtml()
 {
     $this->addTabAfter('trigger_filters', array('label' => Mage::helper('adminhtml')->__('Trigger Products By Filters'), 'content' => $this->getLayout()->createBlock('autobuypromotions/adminhtml_autoBuyPromotion_edit_tab_filters')->toHtml()), 'main_section');
     $this->addTabAfter('trigger_products', array('label' => Mage::helper('adminhtml')->__('Trigger Products by Selection'), 'url' => $this->getUrl('*/*/triggerProductsTab', array('_current' => true)), 'class' => 'ajax'), 'main_section');
     $this->addTabAfter('products', array('label' => Mage::helper('adminhtml')->__('Auto Buy Products'), 'url' => $this->getUrl('*/*/productsTab', array('_current' => true)), 'class' => 'ajax'), 'labels_section');
     return parent::_beforeToHtml();
 }
Beispiel #2
0
 protected function _beforeToHtml()
 {
     if (version_compare(Mage::getVersion(), '1.4.1.0') < 0) {
         return parent::_beforeToHtml();
     }
     $this->addTab('coupons', array('label' => Mage::helper('amxcoupon')->__('Coupons List'), 'class' => 'ajax', 'url' => $this->getUrl('amxcoupon/adminhtml_coupon/index', array('_current' => true))));
     $this->addTab('import', array('label' => Mage::helper('amxcoupon')->__('Import Coupons'), 'content' => $this->getLayout()->createBlock('amxcoupon/adminhtml_import')->toHtml()));
     $this->_updateActiveTab();
     return parent::_beforeToHtml();
 }