gwm:multipleAddress
This commit is contained in:
parent
21cdae2856
commit
19c7a366a6
@ -135,7 +135,7 @@ class PaymentController extends BaseController
|
||||
|
||||
|
||||
$amount = $amount + $cost;
|
||||
$item_count = $item_count + $single_pack_no_of_count;
|
||||
$item_count = $item_count + $CartData[$i]['count'];
|
||||
}
|
||||
|
||||
$data['amount'] = $amount;
|
||||
@ -276,8 +276,9 @@ class PaymentController extends BaseController
|
||||
$memberCredits = $this->creditsModel->where('order_id', $local_order_id )
|
||||
->where('member_id', session()->get('logged_user'))
|
||||
->select('package_name')
|
||||
->select('cost')
|
||||
->selectSum('credit_points', 'credit_points')
|
||||
->selectSum('cost', 'cost')
|
||||
->selectSum('cost', 'costSum')
|
||||
->selectCount('package_name', 'pack_count')
|
||||
->groupBy('package_name')->findAll();
|
||||
|
||||
@ -291,7 +292,7 @@ class PaymentController extends BaseController
|
||||
|
||||
$Subtotal = 0;
|
||||
foreach ($memberCredits as $key => $ele) {
|
||||
$Subtotal = $Subtotal + $ele['cost'];
|
||||
$Subtotal = $Subtotal + $ele['costSum'];
|
||||
}
|
||||
$data['memberCredits'] =$memberCredits;
|
||||
|
||||
@ -306,6 +307,7 @@ class PaymentController extends BaseController
|
||||
// echo '<pre>';
|
||||
// print_r( $data['memberCredits']);
|
||||
// echo '</pre>';
|
||||
// die();
|
||||
|
||||
|
||||
|
||||
|
||||
@ -196,8 +196,8 @@ $web_payment_sdk_url = $_ENV["ENVIRONMENT"] === Environment::PRODUCTION ? "https
|
||||
</div>
|
||||
<?php foreach ($packageArray as $row) { ?>
|
||||
<div class="row evo">
|
||||
<div class="col-lg-6 col-6"><div class="product-name"><?php echo $row['package_name']." (".$row['count'].")"; ?></div></div>
|
||||
<div class="col-lg-6 col-6 text-end"><div class="product-price"><span class="price-symbol">$</span><?php echo $row['cost'] * $row['count']; ?></div></div>
|
||||
<div class="col-lg-8 col-8"><div class="product-name"><?php echo $row['package_name']." (".$row['cost']." x ".$row['count'].")"; ?></div></div>
|
||||
<div class="col-lg-4 col-4 text-end"><div class="product-price"><span class="price-symbol">$</span><?php echo $row['cost'] * $row['count']; ?></div></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="row item1">
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
<img src="<?= base_url()."/public"; ?>/assets/member_images/cart-icon.png" alt="" width="70" height="70">
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<div class="product-name"><?php echo $val['package_name']." (".$val['pack_count'].")"; ?></div>
|
||||
<div class="product-name"><?php echo $val['package_name']." (".$val['cost']." x ".$val['pack_count'].")"; ?></div>
|
||||
<div class="credits-number"><?php echo $val['credit_points']; ?> Credits</div>
|
||||
<!-- <div class="credit-point">20+4 Credits Extra*</div>
|
||||
<div class="credit-price">1 Credit at $22.90</div> -->
|
||||
@ -74,7 +74,7 @@
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 d-flex justify-content-end align-items-start">
|
||||
<div class="order-total"><span class="price-symbol">$</span><?php echo $val['cost']; ?></div>
|
||||
<div class="order-total"><span class="price-symbol">$</span><?php echo $val['costSum']; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user