Spaces:
Running
Running
Update templates/cart.html
Browse files- templates/cart.html +1 -1
templates/cart.html
CHANGED
@@ -171,7 +171,7 @@
|
|
171 |
|
172 |
<script>
|
173 |
// Example function to handle the increase/decrease button clicks
|
174 |
-
function
|
175 |
const email = sessionStorage.getItem("userEmail"); // or get from your session
|
176 |
let quantity = parseInt(document.getElementById(`${itemName}-quantity`).innerText); // Current quantity on the page
|
177 |
if (action === 'increase') {
|
|
|
171 |
|
172 |
<script>
|
173 |
// Example function to handle the increase/decrease button clicks
|
174 |
+
function updateQuantity(itemName, action) {
|
175 |
const email = sessionStorage.getItem("userEmail"); // or get from your session
|
176 |
let quantity = parseInt(document.getElementById(`${itemName}-quantity`).innerText); // Current quantity on the page
|
177 |
if (action === 'increase') {
|