/** * Check whether rewards can be added for action * * @return bool */ public function canAddRewardPoints() { $frequency = Mage::helper('enterprise_reward')->getPointsConfig('invitation_order_frequency', $this->getReward()->getWebsiteId()); if ($frequency == '*') { return !$this->isRewardLimitExceeded(); } else { return parent::canAddRewardPoints(); } }
/** * Check whether rewards can be added for action * Checking for the history records is intentionaly omitted * * @return bool * */ public function canAddRewardPoints() { return parent::canAddRewardPoints() && Mage::helper('enterprise_reward')->isOrderAllowed($this->getReward()->getWebsiteId()); }