Server IP : 103.53.40.154 / Your IP : 3.145.105.149 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/deergham.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); if(!isset($_SESSION["user"]) OR $_SESSION["user"] == "" ){ header('location:login.php'); } require_once('admin/config.php'); // Remove to Wishlist start if(isset($_POST['delete'])){ $id = $_POST['id']; $del_re_wis = "DELETE FROM `tbl_wishlist` WHERE `w_id` = '$id'"; $run_re_wis = mysqli_query($db,$del_re_wis); if($run_re_wis){ echo "<script> window.alert('Product removed from your wishlist successfully.'); window.location.href = 'wishlist.html'; </script>"; }else{ echo "<script> window.alert('Query Failed.'); window.location.href = 'wishlist.html'; </script>"; } } // Remove to Wishlist start ?> <!DOCTYPE html> <html lang=en> <head> <meta charset=UTF-8> <meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1"> <meta http-equiv=X-UA-Compatible content="ie=edge"> <?php include "top-links.php" ?> <title><?= $datahome['site_pages_meta_title'] ?></title> <meta name="description" content="<?= $datahome['site_pages_meta_description'] ?>"> </head> <body> <?php include "header.php" ?> <header class=page> <div class="page_main container-fluid"> <div class=container> <h1 class=page_header>My Wishlist</h1> </div> </div> <div class=container> <ul class="page_breadcrumbs d-flex flex-wrap"> <li class=page_breadcrumbs-item><a class=link href=<?php echo $wspath?>>Home</a></li> <li class="page_breadcrumbs-item current"><span>Wishlist</span></li> </ul> </div> </header> <main> <section class="featured section--nopb"> <div class=container> <div class=featured_header> <h2 class=featured_header-title>All Wishlist Products</h2> <p class=featured_header-text>Here you can see your wishlist products</p> </div> <div class="products_list d-grid"> <?php $user_id = $_SESSION['user']['cus_id']; $sql_wish_i = "SELECT * FROM `tbl_wishlist` INNER JOIN `tbl_services` ON tbl_wishlist.product_id = tbl_services.id WHERE `user_id` = '$user_id'"; $run_wish_i = mysqli_query($db,$sql_wish_i); if(mysqli_num_rows($run_wish_i) > 0){ while($data_wish_i = mysqli_fetch_assoc($run_wish_i)){ ?> <div class=products_list-item> <div class="products_list-item_wrapper d-flex flex-column"> <div class="media"> <a href="<?php echo $wspath?>detail<?php echo $data_wish_i['slug_url'];?>.html" rel="noopener norefferer"> <img src="<?= $wspath ?>admin/images/property-image/<?= $data_wish_i["image"] ?>" alt="<?= $data_wish_i["name"] ?>" width=100%""> </a> <div class="overlay d-flex justify-content-between align-items-start"> </div> </div> <div class="main d-flex flex-column align-items-center justify-content-between"> <div class="main_price d-flex flex-column justify-content-center align-items-center" > <a class="main_title" href="<?php echo $wspath?>detail<?php echo $data_wish_i['slug_url'];?>.html" rel="noopener norefferer"><?= $data_wish_i['name'] ?></a><p class="price">₹<?= $data_wish_i['mrp'] ?></p> </div> </div> <div class="main d-flex align-items-center justify-content-between"> <form action="<?php $_PHP_SELF ?>" method="POST"> <input type="hidden" name="id" value="<?= $data_wish_i['w_id']?>"> <button class="btn btn--yellow" type="submit" name="delete">Remove</button> </form> <form action="<?php echo $wspath?>add-cart.php" method="POST" class="mb-2"> <!--<a class="btn btn--green"href="">Add to Cart</a>--> <input name="sr_no" value="<?php echo $data_wish_i['id'];?>" hidden> <input name="name" value="<?php echo $data_wish_i['name'];?>" hidden> <input name="price" value="<?php echo $data_wish_i['mrp'];?>" hidden> <input name="image" value="<?php echo $data_wish_i['image'];?>" hidden> <input name="quantity" value="1" hidden> <button class="btn btn--green" name="add_product" type="submit">Add to Cart</button> </form> </div> </div> </div> <?php } }else{ echo'No Product Found'; } ?> </div> </section> </main> <?php include "footer.php" ?> </body> </html>