From 02b2f799dbba52aea4eef4203856636fa3b51417 Mon Sep 17 00:00:00 2001 From: Stacy Date: Fri, 3 May 2024 18:09:25 +0800 Subject: [PATCH] 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
'; } ?>