Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +5 -2
templates/cart.html
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
|
@@ -133,7 +136,7 @@
|
|
| 133 |
<a href="/menu" style="text-decoration: none; font-size: 1.5rem; color: #007bff;">×</a>
|
| 134 |
</div>
|
| 135 |
|
| 136 |
-
|
| 137 |
|
| 138 |
<!-- Cart Items -->
|
| 139 |
{% for item in cart_items %}
|
|
@@ -151,7 +154,7 @@
|
|
| 151 |
<!-- Decrease button -->
|
| 152 |
<button onclick="updateQuantity('decrease', '{{ item.Name }}', '{{ customer_email }}')">-</button>
|
| 153 |
<!-- Quantity input field -->
|
| 154 |
-
<input type="text" value="{{ item.Quantity__c }}" readonly data-item-name="{{ item.Name }}">
|
| 155 |
<!-- Increase button -->
|
| 156 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
| 157 |
</div>
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
|
| 4 |
<!DOCTYPE html>
|
| 5 |
<html lang="en">
|
| 6 |
<head>
|
|
|
|
| 136 |
<a href="/menu" style="text-decoration: none; font-size: 1.5rem; color: #007bff;">×</a>
|
| 137 |
</div>
|
| 138 |
|
| 139 |
+
<h4 class="mb-4 fw-bold">Your Cart</h4>
|
| 140 |
|
| 141 |
<!-- Cart Items -->
|
| 142 |
{% for item in cart_items %}
|
|
|
|
| 154 |
<!-- Decrease button -->
|
| 155 |
<button onclick="updateQuantity('decrease', '{{ item.Name }}', '{{ customer_email }}')">-</button>
|
| 156 |
<!-- Quantity input field -->
|
| 157 |
+
<input type="text" value="{{ item.Quantity__c|int }}" readonly data-item-name="{{ item.Name }}">
|
| 158 |
<!-- Increase button -->
|
| 159 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
| 160 |
</div>
|