Skip to content

Commit

Permalink
order details in admin and user changed the localhost href link to do…
Browse files Browse the repository at this point in the history
…main name laplux.live
  • Loading branch information
navneethvi committed Feb 13, 2024
1 parent 5675ac9 commit efc1025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions views/admin/order-details-admin.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@
var selectedValue = selectElement.value;
console.log(selectedValue);
if(selectedValue == "cancel"){
window.location.href = `http://localhost:3000/admin/changeStatus?orderId=${orderId.value}&status=${selectedValue}`;
window.location.href = `https://laplux.live/admin/changeStatus?orderId=${orderId.value}&status=${selectedValue}`;
}else if(selectedValue == "Shipped"){
window.location.href = `http://localhost:3000/admin/changeStatus?orderId=${orderId.value}&status=${selectedValue}`;
window.location.href = `https://laplux.live/admin/changeStatus?orderId=${orderId.value}&status=${selectedValue}`;
}else if(selectedValue == "Delivered"){
window.location.href = `http://localhost:3000/admin/changeStatus?orderId=${orderId.value}&status=${selectedValue}`;
window.location.href = `https://laplux.live/admin/changeStatus?orderId=${orderId.value}&status=${selectedValue}`;
}else{
alert("error")
}
Expand Down
2 changes: 1 addition & 1 deletion views/user/orderDetails.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
console.log(selectedValue);
if (selectedValue == "cancel") {
console.log("keri");
window.location.href = `http://localhost:3000/cancelOrder?orderId=${orderId.value}`;
window.location.href = `https://laplux.live/cancelOrder?orderId=${orderId.value}`;
}
Expand Down

0 comments on commit efc1025

Please sign in to comment.