From a475ceecbaa16ad3136eab4933a48a07cdaf53e9 Mon Sep 17 00:00:00 2001 From: Stacy Date: Tue, 16 Apr 2024 10:47:29 +0800 Subject: [PATCH] Minor Changes --- user-profile.php | 3 ++- vendor-dashboard.php | 4 ++-- vendor-settings.php | 4 ++-- vendor-uploads.php | 2 +- wishlist.php | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/user-profile.php b/user-profile.php index e3ae4f4..b9e01b6 100644 --- a/user-profile.php +++ b/user-profile.php @@ -9,6 +9,7 @@ if ($_SESSION["userId"] <> "") { $customer_data = getCustomerbyLoginId($_SESSION["userId"]); } else { $_SESSION["isLoggedIn"] = false; + header("location: login.php"); } ?> @@ -513,7 +514,7 @@ if ($_SESSION["userId"] <> "") { }) .then(response => { if (response.ok) { - location.reload(); + // location.reload(); // filter the delete action document.getElementById('form-check-' + addressIndex).remove(); } else { diff --git a/vendor-dashboard.php b/vendor-dashboard.php index 38ae990..4223c08 100644 --- a/vendor-dashboard.php +++ b/vendor-dashboard.php @@ -265,7 +265,7 @@ if (is_array($vendorOrderss)) { } ?> --> - + @@ -463,7 +463,7 @@ if (is_array($vendorOrderss)) { } ?> --> - + diff --git a/vendor-settings.php b/vendor-settings.php index 55a579d..30dd44c 100644 --- a/vendor-settings.php +++ b/vendor-settings.php @@ -629,7 +629,7 @@ if ($_SESSION["userId"] <> "") {