nagasurendra commited on
Commit
4dae0f0
·
verified ·
1 Parent(s): 5c99c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -199,7 +199,7 @@ def add_to_cart():
199
  "Quantity__c": existing_quantity + 1, # Increase quantity by 1
200
  "Add_Ons__c": combined_addons, # Update add-ons list
201
  "Add_Ons_Price__c": combined_addons_price, # Update add-ons price
202
- "Price__c": (existing_quantity + 1) * item_price, # Update total price
203
  })
204
  else:
205
  # If the item does not exist in the cart, create a new one
 
199
  "Quantity__c": existing_quantity + 1, # Increase quantity by 1
200
  "Add_Ons__c": combined_addons, # Update add-ons list
201
  "Add_Ons_Price__c": combined_addons_price, # Update add-ons price
202
+ "Price__c": (existing_quantity + 1) * item_price + combined_addons_price, # Update total price
203
  })
204
  else:
205
  # If the item does not exist in the cart, create a new one