Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -297,7 +297,7 @@ def update_quantity():
|
|
| 297 |
addons_price = 0 # Default to 0 if parsing fails
|
| 298 |
|
| 299 |
# Calculate the new price
|
| 300 |
-
|
| 301 |
|
| 302 |
# Update the record in Salesforce
|
| 303 |
sf.Cart_Item__c.update(cart_item_id, {
|
|
|
|
| 297 |
addons_price = 0 # Default to 0 if parsing fails
|
| 298 |
|
| 299 |
# Calculate the new price
|
| 300 |
+
new_price = (base_price * quantity) + addons_price
|
| 301 |
|
| 302 |
# Update the record in Salesforce
|
| 303 |
sf.Cart_Item__c.update(cart_item_id, {
|