diff --git a/app/Controllers/Member_controller.php b/app/Controllers/Member_controller.php index 12c9bd1..e54dd42 100644 --- a/app/Controllers/Member_controller.php +++ b/app/Controllers/Member_controller.php @@ -596,8 +596,14 @@ class Member_controller extends BaseController } $creditsData = $this->creditsModel->where('member_id',$this->session->get('logged_user'))->orderBy('id' , 'ASC')->findAll(); $recent_expiry = $this->creditsModel->select('expiring_date')->selectSum('running_balance', 'no_of_credits')->groupBy('expiring_date')->orderBy('expiring_date', 'asc')->where('member_id',$this->session->get('logged_user'))->where('is_active',1)->first(); - $data['no_of_credits'] = $recent_expiry['no_of_credits']; - $data['expiring_date'] = $recent_expiry['expiring_date']; + if($recent_expiry){ + $data['no_of_credits'] = $recent_expiry['no_of_credits']; + $data['expiring_date'] = $recent_expiry['expiring_date']; + }else{ + $data['no_of_credits'] = ''; + $data['expiring_date'] = ''; + } + $data['credit_data'] = []; $data['avaiable_credit'] = 0; diff --git a/app/Controllers/PaymentController.php b/app/Controllers/PaymentController.php index 6edf58b..5ce3836 100644 --- a/app/Controllers/PaymentController.php +++ b/app/Controllers/PaymentController.php @@ -146,8 +146,10 @@ class PaymentController extends BaseController $data['gst'] = $gst; $data['pst'] = $pst; $data['packageArray'] = $packageArray; - $data['userdata'] = $this->MemberModel->where('id',session()->get('logged_user'))->find(); - + $data['userdata'] = $this->MemberModel->select('member.* , zipcode.code as zipcode') + ->join('zipcode', 'member.pincode = zipcode.id', 'left') + ->where('member.id', session()->get('logged_user')) + ->find(); $if_trans_exist = $this->TransactionModel->where('member_id', session()->get('logged_user')) ->where('order_id', $orderId )->find(); if($if_trans_exist){ diff --git a/app/Views/cart.php b/app/Views/cart.php index 1210d18..d81fc57 100644 --- a/app/Views/cart.php +++ b/app/Views/cart.php @@ -95,9 +95,9 @@
Taxes
-
-
-
PST(7%)
+
+
+
PST (7%)
@@ -105,9 +105,9 @@
-
-
-
GST(5%)
+
+
+
GST (5%)
diff --git a/app/Views/checkout.php b/app/Views/checkout.php index 7b60ef1..9641eaf 100644 --- a/app/Views/checkout.php +++ b/app/Views/checkout.php @@ -148,6 +148,7 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
@@ -191,7 +192,7 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
- +
diff --git a/app/Views/memberaccess.php b/app/Views/memberaccess.php index aae73ac..8f7fdb8 100644 --- a/app/Views/memberaccess.php +++ b/app/Views/memberaccess.php @@ -146,13 +146,13 @@ "> - "> + "> Items Description diff --git a/app/Views/payment.php b/app/Views/payment.php index cdafc3f..3675934 100644 --- a/app/Views/payment.php +++ b/app/Views/payment.php @@ -94,18 +94,18 @@
Taxes
-
-
-
PST(%)
+
+
+
PST (%)
$
-
-
-
GST(%)
+
+
+
GST (%)
$
@@ -125,7 +125,7 @@ diff --git a/app/Views/payment_failed.php b/app/Views/payment_failed.php index 5799789..d23c910 100644 --- a/app/Views/payment_failed.php +++ b/app/Views/payment_failed.php @@ -26,13 +26,13 @@
-
+
/assets/member_images/Group_122.png" alt="" width="60" height="60"/>

Payment Failed!

- Retry with other payment options +
@@ -58,12 +58,12 @@ -