protected function _prepareLayout() { //Display store switcher if system has more one store if (!Mage::app()->isSingleStoreMode()) { $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)))); } return parent::_prepareLayout(); }
public function __construct() { $this->_controller = 'manage_promo_quote'; $this->_blockGroup = "rewards"; $this->_headerText = Mage::helper('rewards')->__('Shopping Cart Points Rules'); $this->_addButtonLabel = Mage::helper('rewards')->__('Add New Rule'); parent::__construct(); }
public function __construct() { $this->_addButton('apply_rules', array('label' => Mage::helper('catalogrule')->__('Apply Rules'), 'onclick' => "location.href='" . $this->getUrl('*/*/applyRules/type/' . self::RULE_TYPE . '/') . "'", 'class' => '')); $this->_controller = 'manage_promo_catalog_distributions'; $this->_blockGroup = "rewards"; $this->_headerText = Mage::helper('rewards')->__('Catalog Points Earning Rules'); $this->_addButtonLabel = Mage::helper('rewards')->__('Add New Catalog Earning Rule'); parent::__construct(); }
public function __construct() { $this->_addButton('apply_rules', array('label' => Mage::helper('rewards')->__('Apply Rules'), 'onclick' => "location.href='" . $this->getApplyRulesUrl() . "'", 'class' => '')); $this->_controller = 'manage_promo_catalog'; $this->_blockGroup = "rewards"; $this->_headerText = Mage::helper('rewards')->__('Catalog Points Rules'); $this->_addButtonLabel = Mage::helper('rewards')->__('Add New Rule'); parent::__construct(); }
protected function _prepareLayout() { $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('rewards')->__('Create New Transfer'), 'onclick' => "setLocation('" . $this->getUrl('*/*/new') . "')", 'class' => 'add'))); /** * Display store switcher if system has more one store */ if (!Mage::app()->isSingleStoreMode()) { $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)))); } $this->setChild('grid', $this->getLayout()->createBlock('rewards/manage_transfer_grid', 'transfer.grid')); return parent::_prepareLayout(); }