coupon notification

This commit is contained in:
CHIEFSOFT\ameye
2023-12-09 08:19:08 -05:00
parent a7c14de8a3
commit 232e1c3ce2
+9
View File
@@ -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);
}
}