nagasurendra commited on
Commit
c3589d5
·
verified ·
1 Parent(s): 6a371c3

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. 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 = '/order'; // Redirect to menu or order confirmation page
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
  }