source/Application/Model/User.php
public function setCreditPointsForInviter()
    {
        $blSet = false;
        $iPoints = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dPointsForInvitation');
        if ($iPoints) {
            $iNewPoints = $this->oxuser__oxpoints->value + $iPoints;
            $this->oxuser__oxpoints = new Field($iNewPoints, Field::T_RAW);
            $blSet = $this->save();
        }

        return $blSet;
    }
public function setCreditPointsForInviter()
    {
        $blSet = false;
        $iPoints = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('dPointsForInvitation');
        if ($iPoints) {
            $iNewPoints = $this->oxuser__oxpoints->value + $iPoints;
            $this->oxuser__oxpoints = new Field($iNewPoints, Field::T_RAW);
            $blSet = $this->save();
        }

        return $blSet;
    }
public function setCreditPointsForInviter ( ) { $ blSet = false ; $ iPoints = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'dPointsForInvitation' ) ; if ( $ iPoints ) { $ iNewPoints = $ this -> oxuser__oxpoints -> value + $ iPoints ; $ this -> oxuser__oxpoints = new Field ( $ iNewPoints , Field :: T_RAW ) ; $ blSet = $ this -> save ( ) ; } return $ blSet ; }
Assigns credit points to inviter

@return bool
Assigns credit points to inviter