Example #1
0
 /**
  * Retrieve rule actions model
  *
  * @return Mage_Rule_Model_Action_Collection
  */
 public function getActions()
 {
     if (!$this->_actions) {
         $this->_resetActions();
     }
     // Load rule actions if it is applicable
     if ($this->hasActionsSerialized()) {
         $actions = $this->getActionsSerialized();
         if (!empty($actions)) {
             $actions = unserialize($actions);
             if (is_array($actions) && !empty($actions)) {
                 $this->_actions->loadArray($actions);
             }
         }
         $this->unsActionsSerialized();
     }
     return $this->_actions;
 }
 public function getNewChildSelectOptions()
 {
     $actions = parent::getNewChildSelectOptions();
     $actions = array_merge_recursive($actions, array(array('value' => 'catalogrule/rule_action_product', 'label' => Mage::helper('cataloginventory')->__('Update the Product'))));
     return $actions;
 }
Example #3
0
 public function getNewChildSelectOptions()
 {
     $actions = parent::getNewChildSelectOptions();
     $actions = array_merge_recursive($actions, array(array('value' => 'Mage_SalesRule_Model_Rule_Action_Product', 'label' => Mage::helper('Mage_SalesRule_Helper_Data')->__('Update the Product'))));
     return $actions;
 }
 public function __construct()
 {
     parent::__construct();
     $this->setType('email/rule_action_collection');
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->setType('productlist/rule_action_collection');
 }