Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -360,7 +360,7 @@ def checkout():
|
|
360 |
return jsonify({"success": False, "message": "Cart is empty"})
|
361 |
|
362 |
# Calculate the total price of the order
|
363 |
-
total_price = sum(item['Price__c']
|
364 |
|
365 |
# Create the order in Salesforce
|
366 |
order_data = {
|
|
|
360 |
return jsonify({"success": False, "message": "Cart is empty"})
|
361 |
|
362 |
# Calculate the total price of the order
|
363 |
+
total_price = sum(item['Price__c'] for item in cart_items)
|
364 |
|
365 |
# Create the order in Salesforce
|
366 |
order_data = {
|