Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/imyrqtmy/public_html/ayusshiherbs/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include("admin/includes/config.php"); // error_reporting(E_ERROR | E_PARSE); // update if(isset($_POST['update_product_quantity'])){ $update_value =$_POST['update_quantity']; $update_id=$_POST['update_quantity_id']; $update_query = mysqli_query($conn, "update `cart` set quantity = $update_value where id = $update_id"); echo "updated successfully"; } if(isset($_GET['remove'])){ $remove_id = $_GET['remove']; mysqli_query($conn, "Delete from `cart` where id=$remove_id"); } ?> <!doctype html> <html lang="en"> <?php require "inc/head.php" ?> <body class="bg-video"> <!-- page wrapper section --> <div id="wrapper"></div> <!-- Header Part --> <?php require "inc/header.php" ?> <!-- breadcrumb section --> <div class="breadcrumb-area"> <div class="container"> <!-- row --> <div class="row "> <!-- col --> <div class="col-12 align-self-center"> <!-- breadcrumb --> <div class="page-breadcrumb"> <h2 class="fs-2 mb-0 font-black theme-text-primary">Cart</h2> <div class="mb-3"> <ul class="list"> <li><a href="index.php">Home</a></li> <li>Cart</li> </ul> </div> </div> </div> </div> </div> </div> <!-- shop section - view cart --> <div class="my-4"> <div class="container"> <div class="row"> <!-- shopping cart section --> <div class="col-12 mb-6 mb-md-0"> <div class="d-flex flex-column mb-4"> <!-- title section --> <div class="d-flex justify-content-between p-3 border-bottom align-items-center"> <span class="fs-4 fw-bold">Product <span class="fs-6 theme-text-accent-one">(No. Items)</span></span> <span class="fs-4 fw-bold">Subtotal</span> </div> <!-- manage address section --> <div class="d-flex flex-column justify-content-between p-3"> <div class="mb-3"> <!-- items list --> <?php $query = "SELECT * FROM `cart`"; $query_run =mysqli_query($conn, $query); $num = 1; $grandtotal = 0; if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ $pid = $row['pid']; $sql = "select * from products where id='$bid'"; $sql_res = mysqli_query($conn, $sql) or die(mysqli_error($conn)); $sql_row = mysqli_fetch_assoc($sql_res); ?> <div class="list-group-item p-3 mb-3"> <!-- row --> <div class="row align-items-center border-bottom"> <div class="col-6 col-md-2"> <img src="<?php echo $row['photo']?>" alt="Parts" class="img-fluid"> </div> <div class="col-6 col-md-6 col-lg-5"> <a href="javascript:void(0)" class="text-reset"> <p class="mb-0 fw-bold"><?php echo $row['name']?></p> </a> <!-- <span><small class="text-muted font-small">Not returnable</small></span> --> </div> <div class="col-6 col-md-3 col-lg-3 px-0 d-flex flex-column align-items-center justify-content-center"> <form method="post" > <input type="hidden" value="<?php echo $row['id']; ?>" name="update_quantity_id"> <div class="input-group input-spinner d-inline-flex justify-content-center"> <span class="button-minus btn btn-sm"></span> <input type="number" min="1" name="update_quantity" value="<?php echo $row['quantity']; ?>" class="quantity-field form-control-sm form-input"> <span class="button-plus btn btn-sm"></span> <input type="submit" value="Update" name="update_product_quantity" > </form> </div> <div class="mt-2 small lh-1"> <a href="cart.php?remove=<?php echo $row['id']; ?>" onClick="return confirm('Are You Sure You want to delete')" class="text-decoration-none text-inherit"> <span class="me-1 align-middle"><i class="bi bi-trash"></i></span> <span class="text-muted font-extra-small">Remove</span></a> </div> </div> <div class="col-6 col-md-2 text-end"> <span class="fw-bold">₹ <?php echo $subtotal = number_format($row['price'] * $row['quantity']); ?></span> <!-- <div class="text-decoration-line-through text-muted">$26.00</div> --> </div> </div> </div> </div> <!-- <div class="mt-4"> <label class="form-label fw-bold mb-4">Have a Coupon Code? Please provide below.</label> <div class="row"> <div class="col-12 col-lg-5"> <div class="input-group search-input coupon-input"> <input type="text" class="form-control theme-border-radius" placeholder="Coupon Code"> <button class="d-flex justify-content-center align-items-center custom-btn-primary button-effect" type="button">Apply</button> </div> </div> </div> </div> </div> --> </div> </div> </div> <?php $grandtotal = $grandtotal+($row['price'] * $row['quantity']); $num ++; }} ?> <!-- cart summary section --> <div class="col-12 col-lg-6 offset-lg-6"> <div class="d-flex flex-column mb-4"> <!-- title section --> <div class="d-flex justify-content-between p-3 border-bottom"> <span class="fs-4 fw-bold">Cart Summary</span> </div> <!-- price details --> <div class="p-3"> <!-- <div class="pt-2"> <div class="row"> <div class="col-12 col-md-6 col-lg-8"> <p class="mb-2">Subtotal</p> </div> <div class="col-12 col-md-6 col-lg-4"> <div class="d-flex justify-content-end align-items-end"> <div class="product-price mb-2"> <i class="bi bi-currency-dollar"></i><span class="ms-1">260.85</span> </div> </div> </div> </div> </div> --> <!-- repetable --> <!-- <div class="pt-2"> <div class="row"> <div class="col-12 col-md-6 col-lg-8"> <p class="mb-2 text-success">Coupon Discount</p> </div> <div class="col-12 col-md-6 col-lg-4"> <div class="d-flex justify-content-end align-items-end"> <div class="product-price mb-2 text-success"> -<i class="bi bi-currency-dollar"></i><span class="ms-1">130.85</span> </div> </div> </div> </div> </div> --> <!-- repetable --> <!-- <div class="pt-2"> <div class="row"> <div class="col-12 col-md-6 col-lg-8"> <p class="mb-2">Shipping Charge</p> </div> <div class="col-12 col-md-6 col-lg-4"> <div class="d-flex justify-content-end align-items-end"> <div class="product-price mb-2"> <i class="bi bi-currency-dollar"></i><span class="ms-1">260.85</span> </div> </div> </div> </div> </div> --> <!-- repetable --> <!-- <div class="border-bottom pt-2"> <div class="row"> <div class="col-12 col-md-6 col-lg-8"> <p class="mb-2">GST</p> </div> <div class="col-12 col-md-6 col-lg-4"> <div class="d-flex justify-content-end align-items-end"> <div class="product-price mb-2"> <i class="bi bi-currency-dollar"></i><span class="ms-1">260.85</span> </div> </div> </div> </div> </div> --> <!-- repetable --> <div class="pt-2"> <div class="row"> <div class="col-12 col-md-6 col-lg-8"> <p class="mb-2 fw-bold">Grand Total</p> </div> <div class="col-12 col-md-6 col-lg-4"> <div class="d-flex justify-content-end align-items-end"> <div class="product-price mb-2 fw-bold"> <span class="ms-1">₹ <?php echo $grandtotal ?></span> </div> </div> </div> </div> </div> <!-- repetable --> <div class="pt-2"> <!-- button section --> <div class="row mt-4"> <div class="col"> <a href="checkout.php?id=<?php echo $row['id']; ?>" class="btn custom-btn-primary fw-bold button-effect transition-3d-hover px-4">Proceed to checkout</a> </div> </div> </div> <!-- repetable --> </div> </div> </div> </div> </div> </div> <!-- Footer Part --> <?php require "inc/footer.php"; ?> <!-- Search model Begin --> <div class="search-model"> <div class="h-100 d-flex align-items-center justify-content-center"> <div class="search-close-switch"><i class="bi bi-x-lg"></i></div> <form class="search-model-form"> <input type="text" id="search-input" placeholder="Search here....."> <button class="btn custom-btn-primary button-effect min-w-auto"><i class="bi bi-search"></i></button> </form> </div> </div> <!-- Search model end --> <!-- cart checkout section --> <div class="offcanvas offcanvas-end cart-menu" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel"> <div class="offcanvas-header border-bottom"> <div class="text-start"> <h5 id="offcanvasRightLabel" class="mb-0 fs-5 theme-text-primary fw-bold">Shop Cart</h5> <p class="mb-0 font-small theme-text-accent-one">Total Item (3)</p> </div> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> <!-- cart content --> <div class="mb-2"> <ul class="list-group list-group-flush"> <li class="list-group-item py-3 ps-0"> <div class="row align-items-center"> <div class="col-3 col-md-2"> <img src="assets/images/product/Products01.png" alt="Parts" class="img-fluid"> </div> <div class="col-4 col-md-6 col-lg-5"> <a href="javascript:void(0)" class="text-inherit"> <p class="mb-0 font-small fw-bold">Fresh Fruits</p> </a> <span class="font-extra-small"><small class="text-muted">1 Qty.</small><span class="ms-2">$70</span></span> </div> <!-- input group --> <div class="col-3 col-md-3 col-lg-3 px-0"> <div class="input-group input-spinner"> <span class="button-minus btn btn-sm">-</span> <input type="text" value="1" class="quantity-field form-control-sm form-input"> <span class="button-plus btn btn-sm">+</span> </div> </div> <div class="col-2 text-lg-end text-start text-md-end col-md-2"> <div class="mt-2 small lh-1"> <a href="javascript:void(0)" class="text-decoration-none text-inherit"> <span class="me-1 align-middle"><i class="bi bi-trash"></i></span> <span class="text-muted font-extra-small">Remove</span></a> </div> </div> </div> </li> <!-- repetable --> <li class="list-group-item py-3 ps-0"> <div class="row align-items-center"> <div class="col-3 col-md-2"> <img src="assets/images/product/Products02.png" alt="Parts" class="img-fluid"> </div> <div class="col-4 col-md-6 col-lg-5"> <a href="javascript:void(0)" class="text-inherit"> <p class="mb-0 font-small fw-bold">Fresh Cherry</p> </a> <span class="font-extra-small"><small class="text-muted">1 Qty.</small><span class="ms-2">$40</span></span> </div> <div class="col-3 col-md-3 col-lg-3 px-0"> <div class="input-group input-spinner"> <span class="button-minus btn btn-sm">-</span> <input type="text" value="1" class="quantity-field form-control-sm form-input"> <span class="button-plus btn btn-sm">+</span> </div> </div> <div class="col-2 text-lg-end text-start text-md-end col-md-2"> <div class="small lh-1"> <a href="javascript:void(0)" class="text-decoration-none text-inherit"> <span class="me-1 align-middle"><i class="bi bi-trash"></i></span> <span class="text-muted font-extra-small">Remove</span></a> </div> </div> </div> </li> <!-- repetable --> <li class="list-group-item py-3 ps-0"> <div class="row align-items-center"> <div class="col-3 col-md-2"> <img src="assets/images/product/Products03.png" alt="Parts" class="img-fluid"> </div> <div class="col-4 col-md-6 col-lg-5"> <a href="javascript:void(0)" class="text-inherit"> <p class="mb-0 font-small fw-bold">Fresh Veggies</p> </a> <span class="font-extra-small"><small class="text-muted">1 Qty.</small><span class="ms-2">$10</span></span> </div> <div class="col-3 col-md-3 col-lg-3 px-0"> <div class="input-group input-spinner"> <span class="button-minus btn btn-sm">-</span> <input type="text" value="1" class="quantity-field form-control-sm form-input"> <span class="button-plus btn btn-sm">+</span> </div> </div> <div class="col-2 text-lg-end text-start text-md-end col-md-2"> <div class="small lh-1"> <a href="javascript:void(0)" class="text-decoration-none text-inherit"> <span class="me-1 align-middle"><i class="bi bi-trash"></i></span> <span class="text-muted font-extra-small">Remove</span></a> </div> </div> </div> </li> <!-- repetable --> </ul> <!-- order total --> <div class="d-flex my-5"> <h5 class="mb-0 me-auto">Order Subtotal</h5> <h5 class="mb-0">$121.87</h5> </div> <!-- btn --> <div class="d-flex justify-content-between mt-4 custom-button"> <a href="checkout.html" class="d-flex align-items-center custom-btn-primary font-small button-effect px-3">Proceed to checkout</a> <a href="javascript:void(0)" class="theme-border custom-btn-secondary font-small button-effect px-3">Update Cart</a> </div> </div> </div> </div> <!-- wishlist notify --> <div class="wish-notify"></div> <!-- compare notify --> <div class="compare-notify"></div> <!-- add to cart notify --> <div class="cart-notify"> <a href="javascript:void(0)" class="ms-cart-toggle"> <i class="bi bi-basket fs-1"></i><span>3</span></a> </div> <!-- quick view modal --> <div class="modal fade" id="quickViewModal" tabindex="-1" aria-labelledby="quickViewModalLabel" aria-hidden="true"> <div class="modal-dialog modal-xl modal-dialog-centered"> <div class="modal-content"> <div class="modal-body p-5 pb-0"> <div class="position-absolute top-0 end-0 me-3 mt-3" id="quickViewModalLabel"> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="row"> <div class="col-lg-6"> <!-- product gallery --> <div class="product-gallery position-relative"> <div class="deal-badge"> <span class="badge bg-danger">Sale</span> </div> <div class="slider slider-for"> <div class="zoom" onmousemove="zoom(event)" style="background-image: url(assets/images/product/gallery-product01.png)"> <img src="assets/images/product/gallery-product01.png" alt="solar"> </div> <div class="zoom" onmousemove="zoom(event)" style="background-image: url(assets/images/product/gallery-product02.png)"> <img src="assets/images/product/gallery-product02.png" alt="solar"> </div> <div class="zoom" onmousemove="zoom(event)" style="background-image: url(assets/images/product/gallery-product03.png)"> <img src="assets/images/product/gallery-product03.png" alt="solar"> </div> <div class="zoom" onmousemove="zoom(event)" style="background-image: url(assets/images/product/gallery-product04.png)"> <img src="assets/images/product/gallery-product04.png" alt="solar"> </div> <div class="zoom" onmousemove="zoom(event)" style="background-image: url(assets/images/product/gallery-product05.png)"> <img src="assets/images/product/gallery-product05.png" alt="solar"> </div> </div> <div class="slider slider-nav gallery-thumb"> <div> <img src="assets/images/product/gallery-product01.png" alt="grocy store"> </div> <div> <img src="assets/images/product/gallery-product02.png" alt="grocy store"> </div> <div> <img src="assets/images/product/gallery-product03.png" alt="grocy store"> </div> <div> <img src="assets/images/product/gallery-product04.png" alt="grocy store"> </div> <div> <img src="assets/images/product/gallery-product05.png" alt="grocy store"> </div> </div> <!-- products thumb --> </div> </div> <div class="col-lg-6"> <div class="mt-6 mt-lg-0"> <a href="#!" class="mb-3 d-block">Product ayurvedic</a> <h2 class="mb-1 h4">Integer Iaculis Porttitor Risus</h2> <div class="mb-4"> <small class="text-warning"> <i class="bi bi-star-fill"></i> <i class="bi bi-star-fill"></i> <i class="bi bi-star-fill"></i> <i class="bi bi-star-fill"></i> <i class="bi bi-star-half"></i></small> <a href="#" class="ms-2">(30 reviews)</a> </div> <div class="row"> <div class="col-6 fs-4"> <span class="fw-bold theme-text-secondary">$32</span> <span class="text-decoration-line-through text-muted">$35</span><span><small class="fs-6 ms-2 text-danger">26% Off</small></span> </div> <div class="col-6"> <div class="input-group input-spinner"> <span class="button-minus btn btn-sm">-</span> <input type="text" value="1" class="quantity-field form-control-sm form-input"> <span class="button-plus btn btn-sm">+</span> </div> </div> </div> <hr class="my-6"> <div class="mb-4"> <h3 class="h5 mb-3">Tags:</h3> <button type="button" class="btn btn-outline-secondary mb-2 mb-lg-0"> Organic </button> <button type="button" class="btn btn-outline-secondary mb-2 mb-lg-0"> ayurvedic </button> <button type="button" class="btn btn-outline-secondary mb-2 mb-lg-0"> Fitness </button> </div> <div class="mt-3 row justify-content-start g-2 align-items-center"> <div class="col-12 col-md-6"> <button type="button" class="custom-btn-primary font-small button-effect justify-content-center align-items-center d-flex w-100"> <i class="feather-icon icon-shopping-bag me-2"></i>Add to cart </button> </div> <div class="col-12 col-md-6"> <a class="theme-border custom-btn-secondary font-small button-effect px-2 d-inline-flex" href="#" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Compare"><i class="bi bi-arrow-left-right"></i></a> <a class="theme-border custom-btn-secondary font-small button-effect px-2 d-inline-flex" href="#" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Wishlist"><i class="bi bi-heart"></i></a> </div> </div> <hr class="my-6"> <div> <table class="table table-borderless"> <tbody> <tr> <td>Product Code:</td> <td>FBB00255</td> </tr> <tr> <td>Availability:</td> <td><span class="badge text-bg-success">In Stock</span></td> </tr> <tr> <td>Type:</td> <td>ayurvedic</td> </tr> <tr> <td>Shipping:</td> <td> <small>01 day shipping.<span class="text-muted">( Free pickup today)</span></small> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="modal-footer text-center justify-content-center"> <p>See full details</p> </div> </div> </div> </div> <!-- login/signup section --> <div class="login-box"> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" id="exampleModalLabel"> <div class="col-12"> <div class="d-flex justify-content-center"> <ul class="nav nav-pills deals-tab" id="account-tab" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="domestic-tab" data-bs-toggle="pill" data-bs-target="#domestic" type="button" role="tab" aria-controls="domestic" aria-selected="true">Login</button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="international-tab" data-bs-toggle="pill" data-bs-target="#international" type="button" role="tab" aria-controls="international" aria-selected="false">Register</button> </li> </ul> </div> </div> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="row"> <div class="col-12"> <div class="tab-content offers-content" id="account-tabContent"> <div class="tab-pane fade show active" id="domestic" role="tabpanel" aria-labelledby="domestic-tab"> <!-- login tab --> <div class="row"> <div class="col-12 text-center"> <span class="login-app-title">Or continue with</span> <ul class="login-app"> <li><a href="#" class="fb" title="google"></a></li> <li><a href="#" class="go" title="Facebook"></a></li> <li><a href="#" class="in" title="twitter"></a></li> </ul> </div> <div class="col-12"> <form class="needs-validation" novalidate> <div class="mb-3"> <label class="form-label fw-bold">Email Address</label> <input type="email" class="form-control form-control-th rounded-pill" id="exampleInputEmail1" placeholder="Enter Your Email" required> </div> <div class="mb-3"> <label class="form-label fw-bold">Password</label> <input type="password" class="form-control form-control-th rounded-pill" id="exampleInputPassword1" placeholder="Enter Your Password" required> </div> <div class="d-flex justify-content-between"> <div class="form-check"> <input type="checkbox" class="form-check-input" id="exampleCheck1"> <label class="form-check-label" for="exampleCheck1">Remember Me</label> </div> <a href="javascript:void(0)" class="font-small">Forgot Password?</a> </div> <div class="mt-3 mb-3 d-flex align-items-center"> <button type="submit" class="btn custom-btn-primary fw-bold button-effect transition-3d-hover px-4" onclick="window.location.href='#';">Login</button> <span class="font-small"> <span class="mx-3">Create an Account ?</span> <a href="javascript:void(0)" class="reg-btn">Register</a> </span> </div> </form> </div> </div> </div> <div class="tab-pane fade" id="international" role="tabpanel" aria-labelledby="international-tab"> <!-- signup tab --> <div class="row"> <div class="col-12"> <form class="needs-validation" novalidate> <div class="mb-3"> <label for="floatingInput" class="form-label fw-bold">Your Name</label> <input type="text" class="form-control form-control-th rounded-pill" id="floatingInput" placeholder="Your Name"> </div> <div class="mb-3"> <label for="floatingInput2" class="form-label fw-bold">Email Address</label> <input type="email" class="form-control form-control-th rounded-pill" id="floatingInput2" placeholder="Email address"> </div> <div class="mb-3"> <label for="floatingInput3" class="form-label fw-bold">Number</label> <input type="number" class="form-control form-control-th rounded-pill" id="floatingInput3" placeholder="Number"> </div> <div class="mb-3"> <label for="floatingInput4" class="form-label fw-bold">OTP</label> <input type="number" class="form-control form-control-th rounded-pill" id="floatingInput4" placeholder="OTP"> </div> <div class="mb-3"> <label for="floatingPassword" class="form-label fw-bold">Password</label> <input type="password" class="form-control form-control-th rounded-pill" id="floatingPassword" placeholder="Password"> </div> <div class="mb-3"> <label for="floatingPassword2" class="form-label fw-bold">Confirm Password</label> <input type="password" class="form-control form-control-th rounded-pill" id="floatingPassword2" placeholder="Password"> </div> <div class="mb-0 d-flex"> <input type="checkbox" class="form-check-input" id="exampleCheck2"> <label class="form-check-label font-small w-75" for="exampleCheck2">By clicking on register, I Understand & agree to world travel <a href="#">Terms and condition</a> and <a href="#">Privacy Policy</a></label> </div> <div class="mb-3 mt-3 d-flex align-items-center"> <button type="submit" class="btn custom-btn-primary fw-bold button-effect transition-3d-hover px-4" onclick="window.location.href='#';">Register</button> <span class="font-small"> <span class="mx-3">Already a member?</span> <a href="javascript:void(0)" class="log-btn">Login</a> </span> </div> </form> </div> </div> </div> </div> </div> </div> <!-- login content end --> </div> </div> </div> </div> </div> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="../../../../../cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="assets/js/bootstrap.bundle.min.js"></script> <script src="assets/js/slick.min.js"></script> <script src="assets/js/slick-animation.min.js"></script> <script src="assets/js/wow.min.js"></script> <script src="assets/js/jquery.magnific-popup.min.js"></script> <script src="assets/js/hs.megamenu.js"></script> <script src="assets/js/main.js"></script> <!-- Contact Form js files --> <script src="assets/js/validator.min.js"></script> <script src="assets/js/contact.js"></script> </body> <!-- Mirrored from themeslay.com/preview/items/HTML-Websites/ayurvedicPro/shop-cart.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 03 Jun 2024 04:46:20 GMT --> </html>