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