Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|