Spaces:
Sleeping
Sleeping
Update templates/cart.html
Browse files- templates/cart.html +1 -1
templates/cart.html
CHANGED
@@ -254,7 +254,7 @@
|
|
254 |
.then(data => {
|
255 |
if (data.success) {
|
256 |
alert(data.message);
|
257 |
-
window.location.href =
|
258 |
} else {
|
259 |
alert(data.error || data.message);
|
260 |
}
|
|
|
254 |
.then(data => {
|
255 |
if (data.success) {
|
256 |
alert(data.message);
|
257 |
+
window.location.href = data.redirect;// Redirect to menu or order confirmation page
|
258 |
} else {
|
259 |
alert(data.error || data.message);
|
260 |
}
|