Update templates/menu.html
Browse files- templates/menu.html +3 -9
templates/menu.html
CHANGED
@@ -591,8 +591,8 @@ form-check-input addon-option{
|
|
591 |
|
592 |
<!-- JavaScript -->
|
593 |
<script>
|
594 |
-
|
595 |
-
|
596 |
document.getElementById('modal-name').innerText = name;
|
597 |
document.getElementById('modal-price').innerText = `$${price}`;
|
598 |
document.getElementById('modal-img').src = image || '/static/placeholder.jpg';
|
@@ -650,13 +650,7 @@ form-check-input addon-option{
|
|
650 |
document.getElementById('addons-list').innerHTML = '<p>Error loading customization options.</p>';
|
651 |
});
|
652 |
}
|
653 |
-
|
654 |
-
order_details = "\n".join(
|
655 |
-
f"{item['Name']} x{item['Quantity__c']} | Add-Ons: {item.get('Add_Ons__c', 'None')} | "
|
656 |
-
f"Instructions: {item.get('Instructions__c', 'None')} | "
|
657 |
-
f"Price: ${item['Price__c']} | Image: {item['Image1__c']}"
|
658 |
-
for item in cart_items
|
659 |
-
)
|
660 |
|
661 |
function handleToggle(source) {
|
662 |
const form = document.getElementById("filter-form");
|
|
|
591 |
|
592 |
<!-- JavaScript -->
|
593 |
<script>
|
594 |
+
// Show item details and fetch customization options
|
595 |
+
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
596 |
document.getElementById('modal-name').innerText = name;
|
597 |
document.getElementById('modal-price').innerText = `$${price}`;
|
598 |
document.getElementById('modal-img').src = image || '/static/placeholder.jpg';
|
|
|
650 |
document.getElementById('addons-list').innerHTML = '<p>Error loading customization options.</p>';
|
651 |
});
|
652 |
}
|
653 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
654 |
|
655 |
function handleToggle(source) {
|
656 |
const form = document.getElementById("filter-form");
|