Example #1
0
 public function additionAction()
 {
     if ($this->getAmount()) {
         $count = $this->getActionObject();
         $count->setSpentVisitCount($count->getVisitCount());
     }
     return parent::additionAction();
 }
Example #2
0
 public function additionAction()
 {
     if ($this->getAmount()) {
         $count = $this->getActionObject();
         $count->setSpentUniqueClick($count->getUniqueClick());
     }
     return parent::additionAction();
 }
Example #3
0
 public function addTransaction($action = '', $customer = null, $object = null, $extraContent = array())
 {
     if (Mage::helper('customerreward')->isDisabled()) {
         return false;
     }
     try {
         Magestore_Customerreward_Model_Actions_Abstract::getInstance($action, $customer, $object, $extraContent)->addTransaction()->additionAction();
     } catch (Exception $e) {
         return false;
     }
     return $this;
 }
Example #4
0
 public function getActionInstance()
 {
     return Magestore_Customerreward_Model_Actions_Abstract::getInstance($this->getAction(), $this->getCustomer())->setTransaction($this);
 }