コード例 #1
0
ファイル: Points.php プロジェクト: rajarshc/Rooja
 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();
 }
コード例 #2
0
ファイル: Quote.php プロジェクト: rajarshc/Rooja
 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();
 }
コード例 #3
0
ファイル: Distributions.php プロジェクト: rajarshc/Rooja
 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();
 }
コード例 #4
0
ファイル: Catalog.php プロジェクト: rajarshc/Rooja
 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();
 }
コード例 #5
0
ファイル: Transfer.php プロジェクト: rajarshc/Rooja
 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();
 }