Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 public function getActionInstance()
 {
     return Magestore_Customerreward_Model_Actions_Abstract::getInstance($this->getAction(), $this->getCustomer())->setTransaction($this);
 }