• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add-on Credits Per Referral

Akinak

Well-known member
#2
This is not difficult, you need to create a action in credits add-on via ACP, and add 3 line in
class Ragtek_Invite_ControllerPublic_Register

was:
Code:
 if ($referrerId) {
  $this->getModelFromCache('Ragtek_Invite_Model_Invite')->setReferrer($user['user_id'], $referrerId);
  }
A becomes:

Code:
                if ($referrerId) {
                    $this->getModelFromCache('Ragtek_Invite_Model_Invite')->setReferrer($user['user_id'], $referrerId);

                    $credits = $this->getModelFromCache('*******_Credits_Model_Credit');
                    $action = 'type here name of action, which You create in ACP';
                    $credits->updateUserCredit($action, $referrerId);
                }