-
Notifications
You must be signed in to change notification settings - Fork 4
/
overproduct.php
108 lines (88 loc) · 5.42 KB
/
overproduct.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<div class="product_page_bg">
<div class="container">
<script src="assets/functio/A_function.js"></script>
<section class="product_area upsell_products">
<div class="row">
<div class="col-12">
<div class="section_title title_style2">
<div class="title_content">
<h2><span>Upsell</span> Products</h2>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-6" id="product_msg">
</div>
</div>
<div class="row">
<div class="product_carousel product_details_column5 owl-carousel">
<?php
include "db/db.php";
//where product_condition='old'
$product_query2 = "SELECT * FROM products ";
$run_query2 = mysqli_query($con,$product_query2);
if(mysqli_num_rows($run_query2) > 0){
while($roww = mysqli_fetch_array($run_query2)){
$pro_id = $roww['product_id'];
$pro_cat = $roww['product_cat'];
$pro_brand = $roww['product_brand'];
$pro_title = $roww['product_title'];
$pro_price = $roww['product_price'];
$pro_image = $roww['product_image'];
$product_desc = $roww['product_desc'];
$su=($pro_price * 5)/100;
$per=$su+$pro_price;
?>
<div class="col-lg-3">
<article class="single_product">
<figure>
<div class="product_thumb">
<a class="primary_img" href="product_details_v.php?idp01=<?php echo $pro_id;?>"> <img src='login/Image_Product/<?php echo $pro_image ?>' /></a>
<div class="label_product">
<span class="label_sale">-52%</span>
</div>
<div class="quick_button">
<a href="#" data-bs-toggle="modal" data-bs-target="#modal_box" title="quick view"><i class="icon-eye"></i></a>
</div>
</div>
<div class="product_content">
<div class="product_content_inner">
<p class="manufacture_product"><a href="product_details_v.php?idp01=<?php echo $pro_id;?>">Parts</a></p>
<h4 class="product_name"><a href="product_details_v.php?idp01=<?php echo $pro_id;?>"><?php echo $pro_title; ?></a></h4>
<div class="product_rating">
<ul>
<li><a href="#"><i class="ion-android-star-outline"></i></a></li>
<li><a href="#"><i class="ion-android-star-outline"></i></a></li>
<li><a href="#"><i class="ion-android-star-outline"></i></a></li>
<li><a href="#"><i class="ion-android-star-outline"></i></a></li>
<li><a href="#"><i class="ion-android-star-outline"></i></a></li>
</ul>
</div>
<div class="price_box">
<span class="old_price">Rs <?php echo $per; ?></span>
<span class="current_price">Rs <?php echo $pro_price; ?></span>
</div>
</div>
<div class="action_links">
<ul>
<li>
<button pid="<?php echo $pro_id; ?>" id="product" class="btn btn-primary">Add To Cart </button>
<!--
<button pid="<?php echo $pro_id; ?>" id="product" class="btn btn-primary">Add To Cart </button></li>
---
<li class="add_to_cart"><a href="cart.html" title="Add to cart">Add to cart</a></li>
-->
<li class="wishlist"><a href="#" title="Add to Wishlist"><i class="icon-heart"></i></a></li>
</ul>
</div>
</div>
</figure>
</article>
</div>
<?php } } ?>
</div>
</div>
</section>
</div>
</div>