public function additionAction() { if ($this->getAmount()) { $count = $this->getActionObject(); $count->setSpentVisitCount($count->getVisitCount()); } return parent::additionAction(); }
public function additionAction() { if ($this->getAmount()) { $count = $this->getActionObject(); $count->setSpentUniqueClick($count->getUniqueClick()); } return parent::additionAction(); }
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; }
public function getActionInstance() { return Magestore_Customerreward_Model_Actions_Abstract::getInstance($this->getAction(), $this->getCustomer())->setTransaction($this); }