Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ def modal_js():
|
|
187 |
const extrasCost = extras.reduce((total, extra) => total + (extra.price * extra.quantity), 0);
|
188 |
const totalCost = (price * quantity) + extrasCost;
|
189 |
|
190 |
-
// Add the item to the cart
|
191 |
cart.push({ name, price, quantity, extras, instructions, totalCost });
|
192 |
totalCartCost += totalCost; // Update the total cost of the cart
|
193 |
updateCartButton();
|
|
|
187 |
const extrasCost = extras.reduce((total, extra) => total + (extra.price * extra.quantity), 0);
|
188 |
const totalCost = (price * quantity) + extrasCost;
|
189 |
|
190 |
+
// Add the item to the cart with its specific add-ons
|
191 |
cart.push({ name, price, quantity, extras, instructions, totalCost });
|
192 |
totalCartCost += totalCost; // Update the total cost of the cart
|
193 |
updateCartButton();
|