File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/accessoryhub.in/sidebar.php
Back
<html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Viewcart|Accessory Hub Style Your Vehicle</title> <link rel=icon href=favicon.png sizes="20x20" type="image/png"> <link rel="stylesheet" href="assets/css/flaticon.css"> <link rel="stylesheet" href="assets/css/fontawesome.min.css"> <link rel="stylesheet" href="assets/css/themify-icons.css"> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="assets/css/animate.css"> <link rel="stylesheet" href="assets/css/rpopup.min.css"> <link rel="stylesheet" href="assets/css/slick.css"> <link rel="stylesheet" href="assets/css/style.css"> <link rel="stylesheet" href="assets/css/responsive.css"> <script src="https://checkout.razorpay.com/v1/checkout.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> </head> <body> <div id="menu-cart-open"> <div class="cart-title-wrap"> <div class="title"> <h3 class="heading-03">Cart</h3> </div> <div class="show-cart"> <span class="closebtn" title="Close Overlay">×</span> </div> </div> <div class="cart-content"> <div class="cart-item-wrap"> <?php //print_r($_SESSION); $srno = 1; $total = 0; foreach($_SESSION['cart'] as $keyval => $product){ $sql = mysqli_fetch_array(mysqli_query($mysqli, "SELECT * FROM `product`where id='$keyval'")); echo '<div class="cart-single-item" id="response_'.$keyval.'"> <div class="item-left"> <img src="admin/'.$sql['image'].'" alt="img"> </div> <div class="item-right"> <div class="item-text"> <h5 class="heading-05">'.$sql['name'].'</h5> <div class="price"><span class="price_text"> Price:</span>'.$sql['price'].'</div> </div> </div>'; $srno++; $total +=($product*$sql['price']); ?> <span class="closebtn del_buttonnb" title="Close Overlay" name="deleteid" id="deleteid-<?php echo $keyval ?>">×</span> </div> <?php }; ?> <div class="cart-single-item subtotal"> <div class="item-left"> <h5 class="heading-05">Subtotal:</h5> </div> <div class="item-right"> <div class="amount"><?php echo $total ?></div> </div> </div> <div class="main-btn-wrap padding-top-20"> <a href="viewCart.php" class="main-btn black">VIEW CART</a> </div> <div class="main-btn-wrap padding-top-20"> <a href="#" class="main-btn black">CHECKOUT</a> </div> </div> </div> </div> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings