diff --git a/www/application/controllers/Dash.php b/www/application/controllers/Dash.php index 7fd2ff9d..2e62c268 100644 --- a/www/application/controllers/Dash.php +++ b/www/application/controllers/Dash.php @@ -30,6 +30,12 @@ class Dash extends Users_Controller { redirect(home); } else { // load the Dash model now + + $this->load->model('coupon_model'); + $activeCouponResult = $this->coupon_model->loadMemberActiveCoupons($_SESSION['member_id'] ,$fliters=[]); + $_SESSION['coupon'] = $activeCouponResult->num_rows(); + +// print_r($_SESSION); $this->load->model('dash_model'); $out = $this->dash_model->getDashData($data); diff --git a/www/application/views/users/common/userstrip.php b/www/application/views/users/common/userstrip.php index 869afbe1..93e8723d 100644 --- a/www/application/views/users/common/userstrip.php +++ b/www/application/views/users/common/userstrip.php @@ -4,6 +4,17 @@ setlocale(LC_MONETARY, 'en_NG'); ?>