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