nagasurendra commited on
Commit
147a2ec
·
verified ·
1 Parent(s): 37c55d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -324,7 +324,7 @@ def update_quantity():
324
  addons_price = 0 # Default to 0 if parsing fails
325
 
326
  # Calculate the new price
327
- new_price = (base_price + addons_price) * quantity
328
 
329
  # Update the record in Salesforce
330
  sf.Cart_Item__c.update(cart_item_id, {
 
324
  addons_price = 0 # Default to 0 if parsing fails
325
 
326
  # Calculate the new price
327
+ new_price = (base_price) * quantity + addons_price
328
 
329
  # Update the record in Salesforce
330
  sf.Cart_Item__c.update(cart_item_id, {