-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_products.php
More file actions
137 lines (129 loc) · 7.31 KB
/
_products.php
File metadata and controls
137 lines (129 loc) · 7.31 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!-- product -->
<?php
$item_id = $_GET['item_id'] ?? 1;
foreach ($product->getData() as $item) :
if ($item['item_id'] == $item_id) :
?>
<section id="product" class="py-3">
<div class="container">
<div class="row">
<div class="col-sm-6">
<img src="<?php echo $item['item_image'] ?? "./assets/products/1.png" ?>" alt="product" class="img-fluid">
<div class="form-row pt-4 font-size-16 font-baloo">
<div class="col">
<button type="submit" class="btn btn-danger form-control">Proceed to Buy</button>
</div>
<div class="col">
<?php
if (in_array($item['item_id'], $Cart->getCartId($product->getData('cart')) ?? [])){
echo '<button type="submit" disabled class="btn btn-success font-size-16 form-control">In the Cart</button>';
}else{
echo '<button type="submit" name="top_sale_submit" class="btn btn-warning font-size-16 form-control">Add to Cart</button>';
}
?>
</div>
</div>
</div>
<div class="col-sm-6 py-5">
<h5 class="font-baloo font-size-20"><?php echo $item['item_name'] ?? "Unknown"; ?></h5>
<small>by <?php echo $item['item_brand'] ?? "Brand"; ?></small>
<div class="d-flex">
<div class="rating text-warning font-size-12">
<span><i class="fas fa-star"></i></span>
<span><i class="fas fa-star"></i></span>
<span><i class="fas fa-star"></i></span>
<span><i class="fas fa-star"></i></span>
<span><i class="far fa-star"></i></span>
</div>
<a href="#" class="px-2 font-rale font-size-14">20,534 ratings | 1000+ answered questions</a>
</div>
<hr class="m-0">
<!--- product price -->
<table class="my-3">
<tr class="font-rale font-size-14">
<td>M.R.P:</td>
<td><strike>$162.00</strike></td>
</tr>
<tr class="font-rale font-size-14">
<td>Deal Price:</td>
<td class="font-size-20 text-danger">₹<span><?php echo $item['item_price'] ?? 0; ?></span><small class="text-dark font-size-12"> Inclusive of all taxes</small></td>
</tr>
<tr class="font-rale font-size-14">
<td>You Save:</td>
<td><span class="font-size-16 text-danger">₹152.00</span></td>
</tr>
</table>
<!--- !product price -->
<!-- #policy -->
<div id="policy">
<div class="d-flex">
<div class="return text-center mr-5">
<div class="font-size-20 my-2 color-second">
<span class="fas fa-retweet border p-3 rounded-pill"></span>
</div>
<a href="#" class="font-rale font-size-12">10 Days <br> Replacement</a>
</div>
<div class="return text-center mr-5">
<div class="font-size-20 my-2 color-second">
<span class="fas fa-truck border p-3 rounded-pill"></span>
</div>
<a href="#" class="font-rale font-size-12">Daily Tuition <br>Deliverd</a>
</div>
<div class="return text-center mr-5">
<div class="font-size-20 my-2 color-second">
<span class="fas fa-check-double border p-3 rounded-pill"></span>
</div>
<a href="#" class="font-rale font-size-12">1 Year <br>Warranty</a>
</div>
</div>
</div>
<!-- !policy -->
<hr>
<!-- order-details -->
<div id="order-details" class="font-rale d-flex flex-column text-dark">
<small>Delivery by : Mar 29 - Apr 1</small>
<small>Sold by <a href="#">Daily Electronics </a>(4.5 out of 5 | 18,198 ratings)</small>
<small><i class="fas fa-map-marker-alt color-primary"></i> Deliver to Customer - 424201</small>
</div>
<!-- !order-details -->
<div class="row">
<div class="col-6">
<!-- color -->
<div class="color my-3">
<div class="d-flex justify-content-between">
<h6 class="font-baloo">Color:</h6>
<div class="p-2 color-yellow-bg rounded-circle"><button class="btn font-size-14"></button></div>
<div class="p-2 color-primary-bg rounded-circle"><button class="btn font-size-14"></button></div>
<div class="p-2 color-second-bg rounded-circle"><button class="btn font-size-14"></button></div>
</div>
</div>
<!-- !color -->
</div>
<div class="col-6">
<!-- product qty section -->
<div class="qty d-flex">
<h6 class="font-baloo">Qty</h6>
<div class="px-4 d-flex font-rale">
<button class="qty-up border bg-light" data-id="pro1"><i class="fas fa-angle-up"></i></button>
<input type="text" data-id="pro1" class="qty_input border px-2 w-50 bg-light" disabled value="1" placeholder="1">
<button data-id="pro1" class="qty-down border bg-light"><i class="fas fa-angle-down"></i></button>
</div>
</div>
<!-- !product qty section -->
</div>
</div>
</div>
<div class="col-12">
<h6 class="font-rubik">Product Description</h6>
<hr>
<p class="font-rale font-size-14">The art of making crafts by hand in India is called Indian handicrafts. In ancient India people lived in colonies called tribals and they were used to make utility items for their daily use, that art of making the crafts called handicrafts, and the items called handicrafts goods</p>
<p class="font-rale font-size-14">The art of making crafts by hand in India is called Indian handicrafts. In ancient India people lived in colonies called tribals and they were used to make utility items for their daily use, that art of making the crafts called handicrafts, and the items called handicrafts good?</p>
</div>
</div>
</div>
</section>
<!-- !product -->
<?php
endif;
endforeach;
?>