nagasurendra commited on
Commit
516cc8a
·
verified ·
1 Parent(s): 7b1a0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1167,14 +1167,14 @@ def checkout():
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
 
 
1178
  # Fetch Customer ID from Customer_Login__c
1179
  customer_query = sf.query(f"""
1180
  SELECT Id FROM Customer_Login__c
 
1167
 
1168
  total_bill = total_price - discount
1169
 
 
1170
  order_details = "\n".join(
1171
+ f"{item['Name']} x{item['Quantity__c']} | Base Price: ${item['Price__c']} | "
1172
+ f"Add-Ons Price: ${item.get('Add_Ons_Price__c', 0)} | Add-Ons: {item.get('Add_Ons__c', 'None')} | "
1173
+ f"Instructions: {item.get('Instructions__c', 'None')} | Image: {item['Image1__c']}"
1174
  for item in cart_items
1175
  )
1176
 
1177
+
1178
  # Fetch Customer ID from Customer_Login__c
1179
  customer_query = sf.query(f"""
1180
  SELECT Id FROM Customer_Login__c