// 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'));
+ addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points']);
// Subtract points from member account if the admin has selected one
if (isValidUserId(getConfig('coupon_userid'))) {
sendAdminNotification('{--ADMIN_COUPON_CASHED_SUBJECT--}', 'admin_coupon_cashed', $content, getMemberId());
// Display message
- displayMessage(getMaskedMessage('MEMBER_COUPON_CODE_CASHED', $content['points']));
+ displayMessage('{%message,MEMBER_COUPON_CODE_CASHED=' . $content['points'] . '%}');
} else {
// No coupon found
displayMessage('{--MEMBER_COUPON_CODE_ALREADY_CASHED--}');