Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +9 -12
templates/cart.html
CHANGED
|
@@ -338,19 +338,14 @@
|
|
| 338 |
|
| 339 |
<!-- Cart Items -->
|
| 340 |
{% for item in cart_items %}
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
</div>
|
| 345 |
-
<!-- Trash icon moved to the top -->
|
| 346 |
-
<div class="cart-item-actions-top">
|
| 347 |
-
<button class="remove-icon" onclick="removeItemFromCart('{{ item.Name }}')">🗑️</button>
|
| 348 |
-
</div>
|
| 349 |
-
|
| 350 |
<div class="cart-item-details">
|
| 351 |
<div class="cart-item-title">
|
| 352 |
{{ item.Name }}
|
| 353 |
-
</div>
|
| 354 |
<div class="cart-item-addons">
|
| 355 |
<small class="text-muted">Add-ons: {{ item.Add_Ons__c }}</small>
|
| 356 |
</div>
|
|
@@ -364,12 +359,14 @@
|
|
| 364 |
</div>
|
| 365 |
</div>
|
| 366 |
<div class="cart-item-actions">
|
| 367 |
-
<div
|
| 368 |
-
|
|
|
|
|
|
|
|
|
|
| 369 |
</div>
|
| 370 |
</div>
|
| 371 |
</div>
|
| 372 |
-
|
| 373 |
{% else %}
|
| 374 |
<p class="text-center">Your cart is empty.</p>
|
| 375 |
{% endfor %}
|
|
|
|
| 338 |
|
| 339 |
<!-- Cart Items -->
|
| 340 |
{% for item in cart_items %}
|
| 341 |
+
<div class="cart-item">
|
| 342 |
+
<div class="image-wrapper">
|
| 343 |
+
<img src="{{ item.Image1__c }}" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
| 344 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
<div class="cart-item-details">
|
| 346 |
<div class="cart-item-title">
|
| 347 |
{{ item.Name }}
|
| 348 |
+
</div>
|
| 349 |
<div class="cart-item-addons">
|
| 350 |
<small class="text-muted">Add-ons: {{ item.Add_Ons__c }}</small>
|
| 351 |
</div>
|
|
|
|
| 359 |
</div>
|
| 360 |
</div>
|
| 361 |
<div class="cart-item-actions">
|
| 362 |
+
<div>
|
| 363 |
+
<button class="remove-icon" onclick="removeItemFromCart('{{ item.Name }}')">🗑️</button>
|
| 364 |
+
</div>
|
| 365 |
+
<div class="text-primary" style="color: #000 !important;"> <!-- Inline style to ensure it's black -->
|
| 366 |
+
$<span class="base-price">{{ item.Price__c }}</span>
|
| 367 |
</div>
|
| 368 |
</div>
|
| 369 |
</div>
|
|
|
|
| 370 |
{% else %}
|
| 371 |
<p class="text-center">Your cart is empty.</p>
|
| 372 |
{% endfor %}
|