fix
This commit is contained in:
@@ -30,6 +30,12 @@ class Dash extends Users_Controller {
|
|||||||
redirect(home);
|
redirect(home);
|
||||||
} else {
|
} else {
|
||||||
// load the Dash model now
|
// 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');
|
$this->load->model('dash_model');
|
||||||
$out = $this->dash_model->getDashData($data);
|
$out = $this->dash_model->getDashData($data);
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,17 @@ setlocale(LC_MONETARY, 'en_NG');
|
|||||||
?>
|
?>
|
||||||
<!--begin::Row-->
|
<!--begin::Row-->
|
||||||
<div class="row g-5 g-xl-8">
|
<div class="row g-5 g-xl-8">
|
||||||
|
<?php
|
||||||
|
if ( isset($_SESSION['coupon']) && $_SESSION['coupon'] > 0 )
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<div class="col-xl-3 bg-light-danger rounded p-5 mb-7" style="text-align: center;">
|
||||||
|
<a href="/coupons/"> <h5 class="no-margin"> You have credit coupons</h5></a>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_SESSION['wallet']) && $_SESSION['wallet'] == true)
|
if ( isset($_SESSION['wallet']) && $_SESSION['wallet'] == true)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user