Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -387,7 +387,7 @@ def checkout():
|
|
| 387 |
return jsonify({"success": False, "message": "Cart is empty"})
|
| 388 |
|
| 389 |
# Calculate the total price of the order
|
| 390 |
-
total_price = sum(item['Price__c']
|
| 391 |
|
| 392 |
# Format order details including instructions
|
| 393 |
order_details = []
|
|
|
|
| 387 |
return jsonify({"success": False, "message": "Cart is empty"})
|
| 388 |
|
| 389 |
# Calculate the total price of the order
|
| 390 |
+
total_price = sum(item['Price__c'] for item in cart_items)
|
| 391 |
|
| 392 |
# Format order details including instructions
|
| 393 |
order_details = []
|