diff --git a/views/admin/order-details-admin.ejs b/views/admin/order-details-admin.ejs index 9177373..ad98a4a 100644 --- a/views/admin/order-details-admin.ejs +++ b/views/admin/order-details-admin.ejs @@ -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") } diff --git a/views/user/orderDetails.ejs b/views/user/orderDetails.ejs index 45e7937..ef77368 100644 --- a/views/user/orderDetails.ejs +++ b/views/user/orderDetails.ejs @@ -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}`; }