Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +23 -8
templates/cart.html
CHANGED
@@ -32,6 +32,18 @@
|
|
32 |
border-bottom: 1px solid #e0e0e0;
|
33 |
padding: 15px 0;
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
.image-wrapper {
|
36 |
width: 80px; /* Width of the image container */
|
37 |
height: 140px !important; /* Height of the image container */
|
@@ -326,11 +338,16 @@
|
|
326 |
<div class="cart-item">
|
327 |
<div class="image-wrapper">
|
328 |
<img src="{{ item.Image1__c }}" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
329 |
-
|
|
|
|
|
|
|
|
|
|
|
330 |
<div class="cart-item-details">
|
331 |
<div class="cart-item-title">
|
332 |
{{ item.Name }}
|
333 |
-
</div>
|
334 |
<div class="cart-item-addons">
|
335 |
<small class="text-muted">Add-ons: {{ item.Add_Ons__c }}</small>
|
336 |
</div>
|
@@ -343,15 +360,13 @@
|
|
343 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
344 |
</div>
|
345 |
</div>
|
346 |
-
|
347 |
-
<div>
|
348 |
-
|
349 |
-
</div>
|
350 |
-
<div class="text-primary" style="color: #000 !important;"> <!-- Inline style to ensure it's black -->
|
351 |
-
$<span class="base-price">{{ item.Price__c }}</span>
|
352 |
</div>
|
353 |
</div>
|
354 |
</div>
|
|
|
355 |
{% else %}
|
356 |
<p class="text-center">Your cart is empty.</p>
|
357 |
{% endfor %}
|
|
|
32 |
border-bottom: 1px solid #e0e0e0;
|
33 |
padding: 15px 0;
|
34 |
}
|
35 |
+
.cart-item-actions-top {
|
36 |
+
text-align: right; /* Aligns the trash icon to the top-right corner */
|
37 |
+
margin-bottom: 10px; /* Adds space between the image and the trash icon */
|
38 |
+
}
|
39 |
+
|
40 |
+
.cart-item-actions {
|
41 |
+
display: flex;
|
42 |
+
justify-content: space-between;
|
43 |
+
align-items: center;
|
44 |
+
margin-top: 10px;
|
45 |
+
}
|
46 |
+
|
47 |
.image-wrapper {
|
48 |
width: 80px; /* Width of the image container */
|
49 |
height: 140px !important; /* Height of the image container */
|
|
|
338 |
<div class="cart-item">
|
339 |
<div class="image-wrapper">
|
340 |
<img src="{{ item.Image1__c }}" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
341 |
+
</div>
|
342 |
+
<!-- Trash icon moved to the top -->
|
343 |
+
<div class="cart-item-actions-top">
|
344 |
+
<button class="remove-icon" onclick="removeItemFromCart('{{ item.Name }}')">🗑️</button>
|
345 |
+
</div>
|
346 |
+
|
347 |
<div class="cart-item-details">
|
348 |
<div class="cart-item-title">
|
349 |
{{ item.Name }}
|
350 |
+
</div>
|
351 |
<div class="cart-item-addons">
|
352 |
<small class="text-muted">Add-ons: {{ item.Add_Ons__c }}</small>
|
353 |
</div>
|
|
|
360 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
361 |
</div>
|
362 |
</div>
|
363 |
+
<div class="cart-item-actions">
|
364 |
+
<div class="text-primary" style="color: #000 !important;"> <!-- Inline style to ensure it's black -->
|
365 |
+
$<span class="base-price">{{ item.Price__c }}</span>
|
|
|
|
|
|
|
366 |
</div>
|
367 |
</div>
|
368 |
</div>
|
369 |
+
|
370 |
{% else %}
|
371 |
<p class="text-center">Your cart is empty.</p>
|
372 |
{% endfor %}
|