GIF89a php
Current File : /home/hencockfreshchic/public_html/app_old/loadGrandTotal.php
<?php
ob_start();
ini_set('error_reporting', E_STRICT);
include("connect.php");
include("libs.php");
mysqli_set_charset($conn,'utf8');
date_default_timezone_set('Asia/Kolkata');

$cartAmount=totalCart_amount($conn,$_COOKIE["user_id"]);
$deliveryCharge=cartdeliveryCharge($conn,$_COOKIE["user_id"]);
$coupon=findCoupon();
?>


<div class="row bg-light py-1 my-2">
            <div class="col-12 rounded">
             <ul class="list-group list-group-flush mx-2">
                <li class="list-group-item px-0 bg-light fw-light">
                <div class="float-start text-muted"><small>Item Total (incl. taxes) :</small></div>
                <div class="float-end text-muted"><small>Rs. <?php echo $cartAmount; ?></small> </div>
                </li>
                 <li class="list-group-item px-0 bg-light fw-light">
                <div class="float-start text-muted"><small>Delivery Charges :</small></div>
                <div class="float-end text-muted">Rs. <?php echo $deliveryCharge; ?></div>
                </li>
                 <li class="list-group-item px-0 bg-light fw-light">
                <div class="float-start text-muted"><small>Coupon Discount :</small></div>
                <div class="float-end text-muted">Rs. <?php echo $coupon; ?></div>
                </li>
                 <li class="list-group-item px-0 bg-light fw-bold">
                <div class="float-start text-dark"><small>Grand Total :</small></div>
                <div class="float-end text-dark">Rs. <?php echo $cartAmount+$deliveryCharge-$coupon; ?></div>
                </li>
              </ul>
            </div>
          </div>