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
'; } ?>