Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1167,11 +1167,11 @@ def checkout():
|
|
1167 |
|
1168 |
total_bill = total_price - discount
|
1169 |
|
|
|
1170 |
order_details = "\n".join(
|
1171 |
-
f"{item['Name']} x{item['Quantity__c']} |
|
1172 |
-
f"
|
1173 |
-
f"
|
1174 |
-
f"Total Price: ${item['Price__c']}" # Add total price for reference
|
1175 |
for item in cart_items
|
1176 |
)
|
1177 |
|
|
|
1167 |
|
1168 |
total_bill = total_price - discount
|
1169 |
|
1170 |
+
# ✅ Store all order details
|
1171 |
order_details = "\n".join(
|
1172 |
+
f"{item['Name']} x{item['Quantity__c']} | Add-Ons: {item.get('Add_Ons__c', 'None')} | "
|
1173 |
+
f"Instructions: {item.get('Instructions__c', 'None')} | "
|
1174 |
+
f"Price: ${item['Price__c']} | Image: {item['Image1__c']}"
|
|
|
1175 |
for item in cart_items
|
1176 |
)
|
1177 |
|