// Continue only if the proper extension is active (admins can always continue)
if ((!isExtensionActive('coupon')) && (!isAdmin())) {
- displayMessage(generateExtensionInactiveNotInstalledMessage('coupon'));
+ displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=coupon%}');
return;
} // END - if
} // END - if
// Now we just need to book that points on the user's account
- addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points'], false, 0, getPaymentMethodFromExtensionName('coupon'));
+ initReferalSystem();
+ addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points']);
// Subtract points from member account if the admin has selected one
if (isValidUserId(getConfig('coupon_userid'))) {
- // Subtract from this account
+ // Subtract from this account and ignore return status
subtractPoints('cashed_coupon', getConfig('coupon_userid'), $content['points']);
} // END - if