Rammohan0504 commited on
Commit
eda1d1b
·
verified ·
1 Parent(s): 1704c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -415,9 +415,10 @@ def update_quantity():
415
  cart_item_id = cart_items[0]['Id']
416
  base_price = cart_items[0]['Base_Price__c']
417
  addons_price = cart_items[0].get('Add_Ons_Price__c', 0)
418
-
419
  # Calculate new item price
420
  new_item_price = (base_price * quantity) + addons_price
 
421
 
422
  # Update the record in Salesforce
423
  sf.Cart_Item__c.update(cart_item_id, {
 
415
  cart_item_id = cart_items[0]['Id']
416
  base_price = cart_items[0]['Base_Price__c']
417
  addons_price = cart_items[0].get('Add_Ons_Price__c', 0)
418
+ print(base_price)
419
  # Calculate new item price
420
  new_item_price = (base_price * quantity) + addons_price
421
+ print(new_item_price)
422
 
423
  # Update the record in Salesforce
424
  sf.Cart_Item__c.update(cart_item_id, {