From 8439191bbc1de3fac54538cf4b9edda07e79e0bd Mon Sep 17 00:00:00 2001 From: Stacy Date: Fri, 3 May 2024 18:05:45 +0800 Subject: [PATCH 1/5] selection button for address --- user-profile.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/user-profile.php b/user-profile.php index 39c1704..2ef3975 100644 --- a/user-profile.php +++ b/user-profile.php @@ -261,14 +261,16 @@ if ($_SESSION["isVendor"] == true) {
- > + + >
- > + + > @@ -308,6 +310,7 @@ if ($_SESSION["isVendor"] == true) {
+
@@ -891,7 +894,7 @@ if ($_SESSION["isVendor"] == true) { const city = $('#citySelect :selected').text(); const barangay = $('#barangaySelect :selected').text(); const country = $('#addressCountry').val(); - + // Create a new address object const newAddress = { @@ -1156,8 +1159,8 @@ if ($_SESSION["isVendor"] == true) { sCountryElement.textContent = customerData.address[addressIndex].country; } console.log(`Address updated successfully for customer ${customerId}`); - // location.reload(); - // header("location: user-profile.php"); + location.reload(); + header("location: user-profile.php"); } catch (error) { console.error('Error updating address:', error.message); } @@ -1305,7 +1308,7 @@ if ($_SESSION["isVendor"] == true) { -
+ From 1d6b14208d98d78bb5b165766900ecd3b368a576 Mon Sep 17 00:00:00 2001 From: Stacy Date: Fri, 3 May 2024 18:07:31 +0800 Subject: [PATCH 2/5] Vendor: Remove Buttons - Wishlist and Cart --- header.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index 4249e27..71b7e33 100644 --- a/header.php +++ b/header.php @@ -147,6 +147,8 @@ if ($_SESSION["userId"] <> "") { .fi-rr-user:active, .fi-rr-shopping-bag:hover, .fi-rr-shopping-bag:active, + .fi-rr-shopping-basket:hover, + .fi-rr-shopping-basket:active, .fi-rr-home:hover, .fi-rr-home:active { cursor: pointer !important; @@ -302,13 +304,13 @@ if ($_SESSION["userId"] <> "") {
- 0 + 0
- 0 + 0
@@ -386,6 +388,9 @@ if ($_SESSION["userId"] <> "") {
+
@@ -864,6 +869,9 @@ if ($_SESSION["userId"] <> "") { + From 02b2f799dbba52aea4eef4203856636fa3b51417 Mon Sep 17 00:00:00 2001 From: Stacy Date: Fri, 3 May 2024 18:09:25 +0800 Subject: [PATCH 3/5] removed products for Sale/Inquiry in Vendor's Page --- product-left-sidebar.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/product-left-sidebar.php b/product-left-sidebar.php index 4e4e6f5..24c10ae 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -90,6 +90,8 @@ if (isset($_GET['id'])) { if (data != "") { console.log("Data: " + data + "\nStatus: " + status); document.getElementById("cartItemCount").innerHTML = data; + document.getElementById("cartNewItemCount").innerHTML = data; + } }); } @@ -97,8 +99,9 @@ if (isset($_GET['id'])) { function updateWishItemCount() { $.get("wishlistitems.php?id=", function(data) { if (data != "") { - console.log("Data: " + data + "\nStatus: " + status); document.getElementById("wishItemCount").innerHTML = data; + document.getElementById("wishNewItemCount").innerHTML = data; + } }); } @@ -538,7 +541,7 @@ if (isset($_GET['id'])) { -'; @@ -548,6 +551,7 @@ if (isset($_GET['id'])) { echo '
+
'; echo '
'; echo ''; echo '
@@ -572,10 +576,11 @@ if (isset($_GET['id'])) { echo ''; } } - } else { + } else if (($_SESSION["isCustomer"] == false) && ($_SESSION["isVendor"] == false)) { echo ''; + border-radius:10px; letter-spacing:1px;" onmouseover="this.style.background=\'#df9000\'" onmouseout="this.style.background=\'#ffaa00\'" + data-bs-toggle="modal">LOGIN
'; } ?> diff --git a/index.php b/index.php index 4379ba6..b2b76be 100644 --- a/index.php +++ b/index.php @@ -76,11 +76,13 @@ if ($_SESSION["userId"] <> "") { } + - + + @@ -1537,7 +1568,8 @@ if ($_SESSION["isVendor"] == true) { - + + diff --git a/user-refund-history.php b/user-refund-history.php index cea1c0c..2fffbd7 100644 --- a/user-refund-history.php +++ b/user-refund-history.php @@ -54,9 +54,14 @@ if ($_SESSION["isVendor"] == true) { + + + + +