Spaces:
Runtime error
Runtime error
Update templates/menu.html
Browse files- templates/menu.html +7 -2
templates/menu.html
CHANGED
@@ -650,11 +650,16 @@ form-check-input addon-option{
|
|
650 |
|
651 |
{% if item.Section__c == 'Soft Drinks' %}
|
652 |
<!-- Soft Drinks: Direct Add-to-Cart Button -->
|
653 |
-
<div id="quantity-control-{{ loop.index }}" class="quantity-control" style="display: none;">
|
654 |
<button class="btn btn-outline-secondary btn-sm" onclick="decreaseQuantity('{{ item.Name }}', {{ loop.index }})">−</button>
|
655 |
<span class="quantity mx-2" id="quantity-{{ loop.index }}">1</span>
|
656 |
<button class="btn btn-outline-secondary btn-sm" onclick="increaseQuantity('{{ item.Name }}', {{ loop.index }})">+</button>
|
657 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
658 |
<button class="btn btn-primary" id="add-btn-{{ loop.index }}"
|
659 |
onclick="addSoftDrinkToCart('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image1__c }}', '{{ item.Section__c }}', '{{ selected_category }}', {{ loop.index }})">
|
660 |
ADD
|
|
|
650 |
|
651 |
{% if item.Section__c == 'Soft Drinks' %}
|
652 |
<!-- Soft Drinks: Direct Add-to-Cart Button -->
|
653 |
+
<!-- <div id="quantity-control-{{ loop.index }}" class="quantity-control" style="display: none;">
|
654 |
<button class="btn btn-outline-secondary btn-sm" onclick="decreaseQuantity('{{ item.Name }}', {{ loop.index }})">−</button>
|
655 |
<span class="quantity mx-2" id="quantity-{{ loop.index }}">1</span>
|
656 |
<button class="btn btn-outline-secondary btn-sm" onclick="increaseQuantity('{{ item.Name }}', {{ loop.index }})">+</button>
|
657 |
+
</div> -->
|
658 |
+
<div class="d-flex align-items-center gap-2">
|
659 |
+
<button type="button" class="btn btn-outline-secondary" id="decreaseQuantity">-</button>
|
660 |
+
<input type="text" class="form-control text-center" id="quantityInput" value="1" readonly style="width: 50px;"/>
|
661 |
+
<button type="button" class="btn btn-outline-secondary" id="increaseQuantity">+</button>
|
662 |
+
</div>
|
663 |
<button class="btn btn-primary" id="add-btn-{{ loop.index }}"
|
664 |
onclick="addSoftDrinkToCart('{{ item.Name }}', '{{ item.Price__c }}', '{{ item.Image1__c }}', '{{ item.Section__c }}', '{{ selected_category }}', {{ loop.index }})">
|
665 |
ADD
|