Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,10 +72,12 @@ def add_to_cart(dish_name, spice_level, selected_extras, quantity, custom_descri
|
|
| 72 |
def update_cart():
|
| 73 |
if not cart_items:
|
| 74 |
return "<p>Your cart is empty.</p>"
|
| 75 |
-
html_content = "<h3>Cart Items</h3><ul>"
|
| 76 |
for item in cart_items:
|
| 77 |
extras = ", ".join(item["extras"])
|
| 78 |
-
html_content += f"<li>{item['name']} (x{item['quantity']})
|
|
|
|
|
|
|
| 79 |
html_content += "</ul>"
|
| 80 |
return html_content
|
| 81 |
|
|
|
|
| 72 |
def update_cart():
|
| 73 |
if not cart_items:
|
| 74 |
return "<p>Your cart is empty.</p>"
|
| 75 |
+
html_content = "<h3>Cart Items</h3><ul style='list-style-type: none; padding: 0;'>"
|
| 76 |
for item in cart_items:
|
| 77 |
extras = ", ".join(item["extras"])
|
| 78 |
+
html_content += f"<li style='margin-bottom: 10px;'><strong>{item['name']}</strong> (x{item['quantity']})<br>"
|
| 79 |
+
html_content += f"Spice Level: {item['spice_level']}<br>Extras: {extras if extras else 'None'}<br>"
|
| 80 |
+
html_content += f"Note: {item['custom_description']}</li>"
|
| 81 |
html_content += "</ul>"
|
| 82 |
return html_content
|
| 83 |
|