D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
aviscollection.com
/
Filename :
product-details.php
back
Copy
<?php include'style.php'; $sub_cat = $_GET['sub_category']; $product = $_GET['product']; $proQry= "SELECT * FROM products p INNER JOIN product_sub_category ps ON p.product_sub_id = ps.sub_category_id WHERE product_id = '$product'"; $proList = mysqli_query($conn, $proQry); $pro = mysqli_fetch_assoc($proList); $catId = $pro['product_category']; $pcQry = mysqli_query($conn,"SELECT * FROM product_category WHERE category_id = '$catId'"); $pc = mysqli_fetch_assoc($pcQry); $catName = $pc['category_name']; ?> <body> <?php include'header.php'; ?> <main class="main"> <div class="page-header breadcrumb-wrap"> <div class="container"> <div class="breadcrumb"> <a href="./" rel="nofollow">Home</a> <span></span> Fashion <span></span> <?php echo $pro['product_name']; ?> </div> </div> </div> <section class="mt-50 mb-50"> <div class="container"> <div class="row flex-row-reverse"> <div class="col-lg-12"> <div class="product-detail accordion-detail"> <div class="row mb-50"> <div class="col-md-5 col-sm-12 col-xs-12"> <div class="detail-gallery"> <span class="zoom-icon"><i class="fi-rs-search"></i></span> <!-- MAIN SLIDES --> <div class="product-image-slider"> <figure class="border-radius-10"> <img src="admin/product-images/<?php echo $pro['product_img1']; ?>" alt="product image"> </figure> <figure class="border-radius-10"> <img src="admin/product-images/<?php echo $pro['product_img2']; ?>" alt="product image"> </figure> <!-- <figure class="border-radius-10"> <img src="admin/product-images/<?php echo $pro['product_img3']; ?>" alt="product image"> </figure> <figure class="border-radius-10"> <img src="admin/product-images/<?php echo $pro['product_img4']; ?>" alt="product image"> </figure> --> </div> <!-- THUMBNAILS --> <div class="slider-nav-thumbnails pl-15 pr-15"> <div><img src="admin/product-images/<?php echo $pro['product_img1']; ?>" alt="product image"></div> <div><img src="admin/product-images/<?php echo $pro['product_img2']; ?>" alt="product image"></div> <!-- <div><img src="admin/product-images/<?php echo $pro['product_img3']; ?>" alt="product image"></div> <div><img src="admin/product-images/<?php echo $pro['product_img4']; ?>" alt="product image"></div> --> </div> </div> <!-- End Gallery --> <div class="social-icons single-share"> <ul class="text-grey-5 d-inline-block"> <li><strong class="mr-10">Share this:</strong></li> <li class="social-facebook"><a href="shop-product-left.html#"><img src="assets/imgs/theme/icons/facebook.png" alt=""></a></li> <li class="social-twitter"> <a href="shop-product-left.html#"><img src="assets/imgs/theme/icons/instagram.png" alt=""></a></li> <li class="social-instagram"><a href="shop-product-left.html#"><img src="assets/imgs/theme/icons/twitter.png" alt=""></a></li> <li class="social-linkedin"><a href="shop-product-left.html#"><img src="assets/imgs/theme/icons/youtube.png" alt=""></a></li> </ul> </div> </div> <div class="col-md-7 col-sm-12 col-xs-12"> <div class="detail-info"> <h2 class="title-detail text-white"><?php echo $pro['product_name']; ?></h2> <div class="product-detail-rating"> <div class="pro-details-brand"> <span class="text-white"> Brands: <a ><?php echo $pro['product_brand']; ?></a></span> </div> </div> <div class="clearfix product-price-cover"> <div class="product-price primary-color float-left"> <ins><span class="font-md ml-15 text-white"><i class="fa-solid fa-tags"></i> Category: </span></ins> <span class="save-price font-md color3 ml-15 text-white"><?php echo $pro['sub_category_name']; ?></span> </div> </div> <div class="bt-1 border-color-1 mt-15 mb-15"></div> <div class="product_sort_info font-xs mb-30"> <ul> <li class="mb-10 text-white"><i class="fi-rs-crown mr-5"></i> 6 Months Brand Warranty</li> <li class="mb-10 text-white"><i class="fi-rs-refresh mr-5"></i> 7 Days Return Policy</li> </ul> </div> <!-- <div class="attr-detail attr-color mb-15"> <strong class="mr-10">Color</strong> <ul class="list-filter color-filter"> <li><a href="shop-product-left.html#" data-color="Red"><span class="product-color-red"></span></a></li> <li><a href="shop-product-left.html#" data-color="Yellow"><span class="product-color-yellow"></span></a></li> <li class="active"><a href="shop-product-left.html#" data-color="White"><span class="product-color-white"></span></a></li> <li><a href="shop-product-left.html#" data-color="Orange"><span class="product-color-orange"></span></a></li> <li><a href="shop-product-left.html#" data-color="Cyan"><span class="product-color-cyan"></span></a></li> <li><a href="shop-product-left.html#" data-color="Green"><span class="product-color-green"></span></a></li> <li><a href="shop-product-left.html#" data-color="Purple"><span class="product-color-purple"></span></a></li> </ul> </div> --> <div class="attr-detail attr-size"> <strong class="mr-10 text-white">Size</strong> <ul class="list-filter size-filter font-small"> <li><a href="shop-product-left.html#">S</a></li> <li class="active"><a href="shop-product-left.html#">M</a></li> <li><a href="shop-product-left.html#">L</a></li> <li><a href="shop-product-left.html#">XL</a></li> <li><a href="shop-product-left.html#">XXL</a></li> </ul> </div> <div class="bt-1 border-color-1 mt-30 mb-30"></div> <div class="detail-extralink"> <div class="detail-qty border radius"> <a href="shop-product-left.html#" class="qty-down"><i class="fa-solid fa-angle-down"></i></a> <span class="qty-val">1</span> <a href="shop-product-left.html#" class="qty-up"><i class="fa-solid fa-angle-up"></i></a> </div> <div class="product-extra-link2"> <ul class="list-inline"> <li class="list-inline-item"> <form action="" method="POST"> </form> <a class="btn btn-whatsapp" href="https://api.whatsapp.com/send?phone=918167470196&text=product-<?php echo $pro['product_name']; ?>, category-<?php echo $catName; ?>, subcategory-<?php echo $pro['sub_category_name']; ?>" target="_blank" data-action="share/whatsapp/share"><i class="fab fa-whatsapp"></i></a> </li> <li class="list-inline-item"> <form method="post" action=""> <input type="hidden" name="product_id" id="product_id" value="<?php echo $pro['product_id']; ?>"> <button type="button" class="action-btn btn-md" onclick="addto_wish()"><i class="fas fa-heart"></i> </button> </form> </li> </ul> </div> </div> <ul class="product-meta font-xs color-grey mt-20"> <li class="mb-1 text-white">Product ID: <a href="shop-product-left.html#">FWM15VKT</a></li> <li class="mb-1 text-white">Tags: <a href="shop-product-left.html#" rel="tag">Cloth</a>, <a href="shop-product-left.html#" rel="tag">Women</a>, <a href="shop-product-left.html#" rel="tag">Dress</a> </li> <li class="text-white">Availability:<span class="in-stock text-success mb-1">Available</span></li> </ul> </div> <!-- Detail Info --> </div> </div> <div class="tab-style3 bg-white p-10"> <ul class="nav nav-tabs text-uppercase"> <li class="nav-item"> <a class="nav-link active" id="Description-tab" data-bs-toggle="tab" href="shop-product-left.html#Description">Description</a> </li> <li class="nav-item"> <a class="nav-link" id="Additional-info-tab" data-bs-toggle="tab" href="shop-product-left.html#Additional-info">Additional info</a> </li> </ul> <div class="tab-content shop_info_tab entry-main-content"> <div class="tab-pane fade show active" id="Description"> <div class=""> <p><?php echo $pro['product_content']; ?></p> </div> </div> <div class="tab-pane fade" id="Additional-info"> <table class="font-md product_descTable"> <tbody> <tr class="stand-up"> <th>Brand</th> <td><p><?php echo $pro['product_brand']; ?></p></td> <th>Ideal For</th> <td><p><?php echo $pro['product_ideal']; ?></p></td> </tr> <tr class="folded-wo-wheels"> <th>Quantity</th> <td><p><?php echo $pro['product_quantity']; ?></p></td> <th>Fabric</th> <td><p><?php echo $pro['product_fabric']; ?></p></td> </tr> <tr class="door-pass-through"> <th>Gender</th> <td><p><?php echo $pro['product_gender']; ?></p></td> <th>Fit</th> <td><p><?php echo $pro['product_fit']; ?></p></td> </tr> <tr class="weight-wo-wheels"> <th>Ocassion</th> <td><p><?php echo $pro['product_ocassion']; ?></p></td> <th>Product Type</th> <td><p><?php echo $pro['product_type']; ?></p></td> </tr> <tr class="width"> <th>Sleeve Type</th> <td><p><?php echo $pro['product_sleeve']; ?></p></td> <th>Product Care Type</th> <td><p><?php echo $pro['product_care']; ?></p></td> </tr> </tbody> </table> </div> </div> </div> <div class="row mt-60"> <div class="col-12"> <h3 class="section-title style-1 mb-30">You May Also Like</h3> </div> <div class="col-12"> <div class="row related-products"> <?php $relatedProduct= mysqli_query($conn, "SELECT * FROM products p INNER JOIN product_sub_category ps ON p.product_sub_id = ps.sub_category_id WHERE product_sub_id = $sub_cat limit 8"); while($pr = mysqli_fetch_assoc($relatedProduct)){ ?> <div class="col-lg-3 col-md-4 col-12 col-sm-6"> <div class="product-cart-wrap small hover-up"> <div class="product-img-action-wrap"> <div class="product-img product-img-zoom"> <a href="shop-product-right.html" tabindex="0"> <img class="default-img" src="admin/product-images/<?php echo $pr['product_img1']; ?>" alt=""> <img class="hover-img" src="admin/product-images/<?php echo $pr['product_img1']; ?>" alt=""> </a> </div> <div class="product-action-1"> <a aria-label="View Details" class="action-btn small hover-up" href="product-details" tabindex="0"><i class="fa-regular fa-eye"></i></a> <a aria-label="Add To Wishlist" class="action-btn small hover-up" href="wishlist" tabindex="0"><i class="fa-regular fa-heart"></i></a> </div> <div class="product-badges product-badges-position product-badges-mrg"> <span class="hot"><?php echo $pr['sub_category_name']; ?></span> </div> </div> <div class="product-content-wrap"> <h2>Brand: <?php echo $pr['product_brand']; ?></h2> <h4><a href="" tabindex="0"><?php echo $pr['product_name']; ?></a></h4> </div> </div> </div> <?php } ?> <!-- <div class="col-lg-3 col-md-4 col-12 col-sm-6"> <div class="product-cart-wrap small hover-up"> <div class="product-img-action-wrap"> <div class="product-img product-img-zoom"> <a href="shop-product-right.html" tabindex="0"> <img class="default-img" src="assets/imgs/shop/product-3-1.jpg" alt=""> <img class="hover-img" src="assets/imgs/shop/product-4-2.jpg" alt=""> </a> </div> <div class="product-action-1"> <a aria-label="View Details" class="action-btn small hover-up" href="product-details" tabindex="0"><i class="fa-regular fa-eye"></i></a> <a aria-label="Add To Wishlist" class="action-btn small hover-up" href="wishlist" tabindex="0"><i class="fa-regular fa-heart"></i></a> </div> <div class="product-badges product-badges-position product-badges-mrg"> <span class="sale">-12%</span> </div> </div> <div class="product-content-wrap"> <h2><a href="shop-product-right.html" tabindex="0">Men Off-White & Grey Abstract Printed Casual Shirt</a></h2> <div class="rating-result" title="90%"> <span> </span> </div> <div class="product-price"> <span>₹ 999 </span> <span class="old-price">₹ 1,399</span> </div> </div> </div> </div> <div class="col-lg-3 col-md-4 col-12 col-sm-6"> <div class="product-cart-wrap small hover-up"> <div class="product-img-action-wrap"> <div class="product-img product-img-zoom"> <a href="shop-product-right.html" tabindex="0"> <img class="default-img" src="assets/imgs/shop/product-4-1.jpg" alt=""> <img class="hover-img" src="assets/imgs/shop/product-4-2.jpg" alt=""> </a> </div> <div class="product-action-1"> <a aria-label="View Details" class="action-btn small hover-up" href="product-details" tabindex="0"><i class="fa-regular fa-eye"></i></a> <a aria-label="Add To Wishlist" class="action-btn small hover-up" href="wishlist" tabindex="0"><i class="fa-regular fa-heart"></i></a> </div> <div class="product-badges product-badges-position product-badges-mrg"> <span class="new">New</span> </div> </div> <div class="product-content-wrap"> <h2><a href="shop-product-right.html" tabindex="0">Men Pink Slim Fit Printed Casual Shirt</a></h2> <p></p> <div class="rating-result" title="90%"> <span> </span> </div> <div class="product-price"> <span>₹ 799 </span> <span class="old-price">₹ 1,099</span> </div> </div> </div> </div> <div class="col-lg-3 col-md-4 col-12 col-sm-6"> <div class="product-cart-wrap small hover-up mb-0"> <div class="product-img-action-wrap"> <div class="product-img product-img-zoom"> <a href="shop-product-right.html" tabindex="0"> <img class="default-img" src="assets/imgs/shop/product-5-1.jpg" alt=""> <img class="hover-img" src="assets/imgs/shop/product-3-2.jpg" alt=""> </a> </div> <div class="product-action-1"> <a aria-label="View Details" class="action-btn small hover-up" href="product-details" tabindex="0"><i class="fa-regular fa-eye"></i></a> <a aria-label="Add To Wishlist" class="action-btn small hover-up" href="wishlist" tabindex="0"><i class="fa-regular fa-heart"></i></a> </div> <div class="product-badges product-badges-position product-badges-mrg"> <span class="hot">Hot</span> </div> </div> <div class="product-content-wrap"> <h2><a href="shop-product-right.html" tabindex="0">Men White & Pink Slim Fit Printed Casual Shirt</a></h2> <div class="rating-result" title="90%"> <span> </span> </div> <div class="product-price"> <span>₹ 899 </span> <span class="old-price">₹ 989</span> </div> </div> </div> </div> --> </div> </div> </div> </div> </div> </div> </div> </section> </main> <?php include'footer.php'; ?> <script> function addto_wish(){ var product_id = $('#product_id').val(); var action = 'add_wishlist'; var datastr = 'productId='+product_id+'&action='+action; // alert(datastr); $.ajax({ url: 'enquiry_submit.php', type: 'POST', data: datastr, success: function(data){ alert(data); // $('#wishData').html(data); } }); } </script> </body> </html>