Uname : Linux V-ShopU01 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64
Server : Apache/2.4.37 (rocky) OpenSSL/1.1.1k
Whoami : apache
Safe Mode : OFF
DOCUMENT ROOT : /var/www/html/site_shopudiet
Disable Function :
Path : /var/www/html/site_shopudiet/

Server IP : 65.20.74.164 Client IP : 3.133.112.90
Current File : /var/www/html/site_shopudiet/cart_confirm.php
<?php
include 'dbconnect.php';
session_start();
if(!isset($_SESSION['id'])){
    header('Location: login_shop.php');
}

// logout
if(isset($_POST['but_logout'])){
    session_destroy();
    header('Location: login_shop.php');
}
?>

<!DOCTYPE html>
<html lang="en" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Online Organic Grocery Store in Kochi | ShopUdiet</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no">
<meta name="description" content="All the products we bring you are 100% Organic Certified. Customers can pick and choose the grocery items for their monthly home requirements from our site.">
<meta name="keywords" content="100% Organic Certified, Organic Store, Grocery store, Kochi Organic Store, Organic products">
<meta name="robots" content="*">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="icon" href="#" type="image/x-icon">
<link rel="shortcut icon" href="#" type="image/x-icon">

<!-- CSS Style -->
<link rel="stylesheet" type="text/css" href="stylesheet/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="stylesheet/revslider.css" >
<link rel="stylesheet" type="text/css" href="stylesheet/owl.carousel.css">
<link rel="stylesheet" type="text/css" href="stylesheet/owl.theme.css">
<link rel="stylesheet" type="text/css" href="stylesheet/jquery.bxslider.css">
<link rel="stylesheet" type="text/css" href="stylesheet/jquery.mobile-menu.css">
<link rel="stylesheet" type="text/css" href="stylesheet/style.css" media="all">
<link rel="stylesheet" type="text/css" href="stylesheet/responsive.css" media="all">

<link href="https://fonts.googleapis.com/css?family=Merriweather:300,300i,400,400i,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:700,600,800,400' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Rubik:400,400i,500,500i,700,700i,900" rel="stylesheet">
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  <script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.js"></script>
<link rel="stylesheet" href="/path/to/flickity.css" media="screen">
<script src="/path/to/flickity.pkgd.min.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
// $(window).load(function(){
//      $('.loader').fadeOut("slow");
// });
$(document).ready(function () {
    setTimeout(function(){
        $('.loader').fadeOut(100);
    }, 2500);
});

</script>


</head>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-170593298-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-170593298-1');
</script>
  <body>
    <div class="loader">
</div>
  <div id="page">
   <?php
 include('header.php');
?>
         
  <div class="page-heading hidden-xs">
    <div class="container">
      <div class="row">
        <div class="col-xs-12">
        <div class="page-title">
<h2>Shopping Cart</h2>
</div>
        </div>
      </div>
    </div>
  </div>
       
<!-- BEGIN Main Container -->  
          
       <div class="main-container col1-layout wow bounceInUp animated">     
              
         <div class="main">                     
            <div class="cart wow bounceInUp animated">
                  <div class="row">
                    <div class="col-md-8 col-sm-6 col-xs-12">
                      <div class="table shopping-cart-tbl ">
                        <h4 style="color: #237231;padding-left: 10px;">YOUR ORDER</h4>
                         
                           <input name="form_key" type="hidden" value="EPYwQxF6xoWcjLUr">
                                  <fieldset>
                               <table id="shopping-cart-table" class="data-table cart-table table-striped">
                <!-- <colgroup><col width="1">
                <col>
                <col width="1">
                                        <col width="1">
                                        <col width="1">
                            <col width="1">
                                        <col width="1">

                            </colgroup> -->
                
     <?php 
                include('dbconnect.php');
             $home_id = $_SESSION['id'];
             $ip_address=$_SESSION['ip_address'];

                     $squery = "select * from product_cart where ip_address='$ip_address'AND status ='order'";
                     $result = mysqli_query($conn,$squery);
                     $i=mysqli_num_rows($result);
                      // echo $i;
                      if($i>0){
                     //$j=1;
                     while( $row = mysqli_fetch_array($result))
                   
                    {
  $price=$row['price'];
  $item=$row['no_of_item'];
  $total=$item*$price;





            ?>            <tbody>
                                   
<tr class="first last odd">
    <td class="image hidden-table"><a href="product-detail.html" title="Women&#39;s Georgette Animal Print" ><img src="admin/img/<?php echo $row['feature_image']?>" alt="Women&#39;s Georgette Animal Print" class="product-image"></a></td>
    <td>
        <h2 class="product-name">
                    <a href="product-detail1.php?id=<?php echo $row['prduct_id']?>"><?php echo $row['prdctname']?></a>
                    <p><?php echo $row['quantity']?></p>

                </h2><form action="edit_cart.php?id=<?php echo $row['id']; ?>" method="post"> 
                    <div class="def-number-input number-input safari_only">
  <button onclick="this.parentNode.querySelector('input[type=number]').stepDown()" class="minus"></button>
  <input class="quantity1" min="1" name="quantity" value="<?php echo $item;?>" type="number">
  <button onclick="this.parentNode.querySelector('input[type=number]').stepUp()" class="plus"></button>
</div></form>
            </td>
        <!--     <?php if($row['flag']=='0'){?>


            <td class="a-center hidden-table">
                <a href="product-detail_edit.php?id=<?php echo $row['id']?>" class="edit-bnt" title="Edit item parameters"></a>
            </td>
          <?php } ?>
          <?php if($row['flag']=='1'){?>


            <td class="a-center hidden-table">
                <a href="package-detail_edit.php?id=<?php echo $row['id']?>" class="edit-bnt" title="Edit item parameters"></a>
            </td>
          <?php } ?> -->
    
    
                <td class="a-right hidden-table">
                            <span class="cart-price">
                                                <span class="price"><?php if ($total>0) { echo "₹". $total; }  ?></span>                
            </span>


                    </td>
                        <!-- <td class="a-center movewishlist">
        <input name="no_of_item" value="<?php echo $row['no_of_item']?>" size="4" title="Qty" class="input-text qty" maxlength="12">
    </td> -->
        <!-- <td class="a-right movewishlist">
                    <span class="cart-price">
        
                                                <span class="price"><?php if ($total>0) { echo "₹". $total; }  ?></span>                            
        </span>
            </td> -->
            <td class="a-center last">

   <a href="delete_product.php?id=<?php echo $row['id']; ?>" title="Remove item" class="button remove-item"><span><span>Remove item</span></span></a></td>





</tr> 



<?php }?>
    
                         </tbody>
                         <tfoot class="hidden-xs">
                    <tr class="first last">
                        <td colspan="50" class="a-right last">
                                                            <!-- <button type="button" title="Continue Shopping" class="button btn-continue" onClick=""><span><span>Continue Shopping</span></span></button> -->
                                                            <a href="checkout.php" class="button btn-empty delbtn">Checkout</a>
                                                        <!-- <button type="submit" name="update_cart_action" value="update_qty" title="Update Cart" class="button btn-update"><span><span>Update Cart</span></span></button> -->
                            <!-- <button type="submit" name="delete_cart_action" value="empty_cart" title="Clear Cart" class="button btn-empty" id="empty_cart_button" ><span><span>Clear Cart</span></span></button> -->
                          <!--   <a href="delete_cart.php" class="button btn-empty delbtn">Clear Cart</a> -->
                          <a href="grid.php" class="button btn-empty delbtn">Continue Shopping</a>
                  
                        </td>
                    </tr>
                </tfoot>
                            <?php

 

}
else {


?>
<tbody >
  <div class="empty">
                                   
<h5>Your cart is currently empty</h5><p>
Before proceed to checkout you must add some products to your shopping cart. You will find a lot of interesting products on our "Shop" page.</p>

   <center><a href="home.php?" title="Remove item"><button class="btn empty_btn">Start Shopping</button></a></center></td>

</div>
<?php } ?>


 




    
                         </tbody>




            </table>
            
        </fieldset>
   
</div>
                              </div>
                              <?php
                               
                include('dbconnect.php');
             $home_id = $_SESSION['id'];

                     $squery = "select * from product_cart where user_id='$home_id'AND status ='enquery' or status ='order'";
                     $result = mysqli_query($conn,$squery);
                     $i=mysqli_num_rows($result);
                     //$j=1; 
                     $grandtotal=0;
                     while( $row = mysqli_fetch_array($result))
                   
                    {

                        
                        $grandtotal=$grandtotal+$row['total'];




}
$grandtotal=$grandtotal+30;
                              ?>

<div class="col-md-4 col-sm-6 col-xs-12 pricedetails">
  <h4>PAYMENT DETAILS</h4>
  <div class="row ">
  <div class="row item">
  <div class="col-md-6 col-sm-6 col-xs-6 itemtotal">
    <p>Total Item</p>
    
  </div>
  <div class="col-md-6 col-sm-6 col-xs-6 itemtotalval">
    <p><?php echo $i;?></p>
    
  </div>
  </div>
  <div class="row item">
  <div class="col-md-6 col-sm-6 col-xs-6 itemtotal">
    <p>Delivery Charge</p>
    
  </div>
  <div class="col-md-6 col-sm-6 col-xs-6 itemtotalval">
    <p><i class="fa fa-inr" aria-hidden="true"></i>30</p>
    
  </div>
  </div>
  <div class="row item">
  <div class="col-md-6 col-sm-6 col-xs-6 itemtotal">
    <p>Grand Total</p>
    
  </div>
  <div class="col-md-6 col-sm-6 col-xs-6 itemtotalval">
    <p><?php if ($grandtotal>0) { echo "₹". $grandtotal; }  ?></p>
    
  </div></div>



                            </div>
                          </div>

                        </div>


   <!-- BEGIN CART COLLATERALS -->

 <!--cart-collaterals-->


</div>
</div>  <!--cart-->
          
         </div><!--main-container-->
          
          </div> <!--col1-layout-->
          


  <!-- For version 1,2,3,4,6 -->
<div class="hidden-xs">
 <?php
 include('footer.php');
?></div>
 </div><!--main-container-->
 <?php 
 if($i>0){ ?>
         <div class="hidden-lg hidden-md hidden-sm">

    



    <!-- End For version 1,2,3,4,6 --> 
    <footer"> 
      <!-- BEGIN INFORMATIVE FOOTER -->
      
        
        <!--container--> 
    
      <!--footer-inner--> 
      
      <!--footer-middle-->
      <div class="footer-top1">
        <div class="container">
          <div class="row">
            
            <div class="col-sm-12 col-xs-12 coppyright"> © 2020 All Rights Reserved. Develop by<a href="http://ephphathasoftech.com/" target="blank">Ephphatha Softech.</a> </div>
           
          </div>
        </div>
      </div>
      <!--footer-bottom--> 
      <!-- BEGIN SIMPLE FOOTER --> 
    </footer>
         


        <div class="container-fluid hidden-lg hiddem-md">
          
              <div class="row fix2">
               



   
                 <div class="d-md-none d-sm-none col-xs-6 fix-row3"><a href="grid.php">
                   CONTINUE SHOPPING</a>
                 </div>
                 <div class="d-md-none d-sm-none col-xs-6 fix-row3"><a href="checkout.php">
                   CONFIRM ORDER</a>
                 </div>
                
                
                
                 




              </div>
             <!--  <div class="row">
                <div class="coppyright"> © 2020 All Rights Reserved. Develop by<a href="http://ephphathasoftech.com/" target="blank">Ephphatha Softech.</a> </div>
                
              </div> -->

              
           </div>
         
 </div>
  
</div>
<?php }
else {?>
           <div class="hidden-lg hidden-md hidden-sm">

    



    <!-- End For version 1,2,3,4,6 --> 
    <footer"> 
      <!-- BEGIN INFORMATIVE FOOTER -->
      
        
        <!--container--> 
    
      <!--footer-inner--> 
      
      <!--footer-middle-->
      <div class="footer-top1">
        <div class="container">
          <div class="row">
            
            <div class="col-sm-12 col-xs-12 coppyright"> © 2020 All Rights Reserved. Develop by<a href="http://ephphathasoftech.com/" target="blank">Ephphatha Softech.</a> </div>
           
          </div>
        </div>
      </div>
      <!--footer-bottom--> 
      <!-- BEGIN SIMPLE FOOTER --> 
    </footer>
         


        <div class="container-fluid hidden-lg hiddem-md">
          
              <div class="row fix2">
               



   <!-- <div class="d-md-none d-sm-none col-xs-6 fix-row3"><a href="shopping_cart.php">
                   COFIRM ORDER</a>
                 </div> -->
                 <div class="d-md-none d-sm-none col-xs-12 fix-row3"><a href="grid.php">
                   CONTINUE SHOPPING</a>
                 </div>
                
                
                
                 




              </div>
             <!--  <div class="row">
                <div class="coppyright"> © 2020 All Rights Reserved. Develop by<a href="http://ephphathasoftech.com/" target="blank">Ephphatha Softech.</a> </div>
                
              </div> -->

              
           </div>
         
 </div>
  
</div><?php }?>
<!--page-->
<!-- Mobile Menu-->
<?php
 include('mobile-menu.php');
?>
<a href="#" id="toTop" style="display: block;"><span class="fa fa-arrow-up"></span></a>
<!-- JavaScript --> 
<script type="text/javascript" src="js/jquery.min.js"></script> 
<script type="text/javascript" src="js/bootstrap.min.js"></script> 
<script type="text/javascript" src="js/parallax.js"></script> 
<script type="text/javascript" src="js/revslider.js"></script> 
<script type="text/javascript" src="js/common.js"></script> 
<script type="text/javascript" src="js/jquery.bxslider.min.js"></script> 
<script type="text/javascript" src="js/jquery.flexslider.js"></script> 
<script type="text/javascript" src="js/owl.carousel.min.js"></script> 
<script type="text/javascript" src="js/jquery.mobile-menu.min.js"></script>
<style type="text/css">
  .empty h5{
    font-size: 25px;
    color: #288428;
    font-weight: 600;
    text-align: center;
    padding-top: 5px;
  }
  .empty p{
    margin: 0 0 10px;
    text-align: center;
    padding: 10px;
    font-size: 15px;
  }
  .empty_btn{
    background: #288428;
    color: #fff;
    font-size: 15px;
    border-radius: 18px;
    align-items: center;
    margin-bottom: 10px;
}
  }
</style>

</body></html>