Spaces:
Runtime error
Runtime error
Update templates/cart.html
Browse files- templates/cart.html +17 -16
templates/cart.html
CHANGED
|
@@ -140,6 +140,22 @@
|
|
| 140 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
| 141 |
</div>
|
| 142 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
<div class="cart-item-actions">
|
| 144 |
<div class="text-primary">
|
| 145 |
$<span class="base-price">{{ item.Price__c }}</span>
|
|
@@ -176,22 +192,7 @@
|
|
| 176 |
</div>
|
| 177 |
</div>
|
| 178 |
|
| 179 |
-
|
| 180 |
-
{% if suggestions %}
|
| 181 |
-
<div class="suggestion-section">
|
| 182 |
-
<h5>Complete Your Meal</h5>
|
| 183 |
-
{% for suggestion in suggestions %}
|
| 184 |
-
<div class="suggestion-item">
|
| 185 |
-
<img src="{{ suggestion.Image1__c }}" alt="{{ suggestion.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
| 186 |
-
<div>
|
| 187 |
-
<div>{{ suggestion.Name }}</div>
|
| 188 |
-
<div class="text-muted">₹{{ suggestion.Price__c }}</div>
|
| 189 |
-
</div>
|
| 190 |
-
<button class="add-back-button" onclick="addSuggestion('{{ suggestion.Id }}')">Add</button>
|
| 191 |
-
</div>
|
| 192 |
-
{% endfor %}
|
| 193 |
-
</div>
|
| 194 |
-
{% endif %}
|
| 195 |
|
| 196 |
</div>
|
| 197 |
|
|
|
|
| 140 |
<button onclick="updateQuantity('increase', '{{ item.Name }}', '{{ customer_email }}')">+</button>
|
| 141 |
</div>
|
| 142 |
</div>
|
| 143 |
+
<!-- Suggestions Section -->
|
| 144 |
+
{% if suggestions %}
|
| 145 |
+
<div class="suggestion-section">
|
| 146 |
+
<h5>Complete Your Meal</h5>
|
| 147 |
+
{% for suggestion in suggestions %}
|
| 148 |
+
<div class="suggestion-item">
|
| 149 |
+
<img src="{{ suggestion.Image1__c }}" alt="{{ suggestion.Name }}" onerror="this.src='/static/placeholder.jpg';">
|
| 150 |
+
<div>
|
| 151 |
+
<div>{{ suggestion.Name }}</div>
|
| 152 |
+
<div class="text-muted">₹{{ suggestion.Price__c }}</div>
|
| 153 |
+
</div>
|
| 154 |
+
<button class="add-back-button" onclick="addSuggestion('{{ suggestion.Id }}')">Add</button>
|
| 155 |
+
</div>
|
| 156 |
+
{% endfor %}
|
| 157 |
+
</div>
|
| 158 |
+
{% endif %}
|
| 159 |
<div class="cart-item-actions">
|
| 160 |
<div class="text-primary">
|
| 161 |
$<span class="base-price">{{ item.Price__c }}</span>
|
|
|
|
| 192 |
</div>
|
| 193 |
</div>
|
| 194 |
|
| 195 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
</div>
|
| 198 |
|