coupon notification
This commit is contained in:
@@ -163,6 +163,15 @@ CREATE TABLE coupons_allocation (
|
||||
// send allocation email
|
||||
coupon_email(WRENCHBOARD_COUPON_ACTIVATE, inx, out);
|
||||
recommendation_engine(RECOMMEND_COUPON , inx, out); // trigger the card interaction in apps
|
||||
|
||||
CVars xy;
|
||||
if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'message.svg' AS icon "
|
||||
" FROM members WHERE id = %lu ",in["member_id"].Long()) > 0 ){
|
||||
xy["msg"] = "You have received a free coupon !!!";
|
||||
xy["msg"].set_valid(true);
|
||||
plan_notification(xy, out);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user