diff --git a/header.php b/header.php index 6a8c53b..d01b85e 100644 --- a/header.php +++ b/header.php @@ -689,11 +689,11 @@ if ($_SESSION["userId"] <> "") { @@ -253,40 +253,41 @@ function updateWishItemCount() { - -
-
-
Vendor Search Results
- -
- More Vendors> -
-
- -
+
+
+
Vendor Search Results
+ +
+ More Vendors> +
+
+
+
- +
-
+
+ -
- +
    - +
@@ -295,140 +296,167 @@ function updateWishItemCount() {
+ // // Attach event listener to search form or button + // document.getElementById("search-form").addEventListener("submit", function(event) { + // event.preventDefault(); // Prevent default form submission + // let searchQuery = document.getElementById("search-input").value; + // console.log(searchQuery + " search clicked"); + // // Make AJAX request to fetch products based on search query + // // You need to implement this part in a similar way to loading products + // }); + }); +
@@ -795,77 +855,117 @@ maxPriceInput.addEventListener('input', function() {
+ +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
Handbag leather purse for women +
Handbag leather purse + for women
@@ -1105,7 +1216,8 @@ maxPriceInput.addEventListener('input', function() { Size
    -
  • S
  • +
  • S
  • M
  • X
  • XL
  • @@ -1118,7 +1230,8 @@ maxPriceInput.addEventListener('input', function() {
- +
@@ -1130,7 +1243,7 @@ maxPriceInput.addEventListener('input', function() {
- + - +
diff --git a/user-history.php b/user-history.php index f602828..d204e41 100644 --- a/user-history.php +++ b/user-history.php @@ -23,7 +23,8 @@ if ($_SESSION["isVendor"] == true) { oBanana B2B - Elevate Your Business - + @@ -33,7 +34,7 @@ if ($_SESSION["isVendor"] == true) { - + @@ -45,7 +46,7 @@ if ($_SESSION["isVendor"] == true) { - + @@ -57,123 +58,144 @@ if ($_SESSION["isVendor"] == true) { - + - + - - @@ -186,6 +208,152 @@ if ($_SESSION["isVendor"] == true) {
+ @@ -231,7 +399,7 @@ if ($_SESSION["isVendor"] == true) {
-
+
-
+
- alt="vendor image"> + + alt="vendor image">
@@ -290,7 +460,8 @@ if ($_SESSION["isVendor"] == true) {
-->
@@ -298,16 +469,31 @@ if ($_SESSION["isVendor"] == true) {
-
All Orders -
-
To Pay -
-
To Ship -
-
To Receive -
-
Complete -
+
+ All Orders + +
+
+ To Pay + +
+
+ To Ship + +
+
+ To Receive + +
+
+ Complete + +
@@ -315,7 +501,7 @@ if ($_SESSION["isVendor"] == true) { - - + + No Order/s Yet.

'; - ?> - + ?> + @@ -422,7 +623,7 @@ if ($_SESSION["isVendor"] == true) {
- +
@@ -440,7 +641,7 @@ if ($_SESSION["isVendor"] == true) { - - - - - - - - - - + ?> + + + + + + + - - + + No To Pay Order/s Yet.

'; - ?> - + ?> + @@ -507,7 +723,7 @@ if ($_SESSION["isVendor"] == true) {
- ' data-bs-toggle="modal" + data-bs-target="#productDetails"> + + - product - " + alt="product"> + - " alt="product"> - " + alt="product"> + - + + + + +
- +
@@ -527,7 +743,7 @@ if ($_SESSION["isVendor"] == true) { - - - - - - - - - - - - - + + + No To Ship Order/s Yet.

'; - ?> - + ?> + @@ -594,7 +825,7 @@ if ($_SESSION["isVendor"] == true) {
- ' data-bs-toggle="modal" + data-bs-target="#productDetails"> + + - product - " + alt="product"> + - " alt="product"> - " + alt="product"> + -
- +
@@ -613,7 +844,7 @@ if ($_SESSION["isVendor"] == true) { - - - - - - - - - - - - - + + + - No To Receive Order/s Yet.

'; - ?> - + ?> + @@ -720,250 +978,1141 @@ if ($_SESSION["isVendor"] == true) { $totalAmount += $order['total_amount']; ?> - - - - - - - - - - - + - - - -
@@ -178,31 +184,39 @@ if ($_SESSION["isVendor"] == true) {
-
- Edit Detail +
- alt="vendor image"> -
+ + alt="vendor image"> +
+
Account Information
-
+
E-mail address
    -
  • +
  • +
-
+
Contact number
  • @@ -210,59 +224,81 @@ if ($_SESSION["isVendor"] == true) {
-
+
-
Address
+
Address
- -
- Shipping Address: -
-
- Name: - - - -
-
- Contact #: -
-
- Address: - - - - - - - -
- - -
- Billing Address: -
-
- Name: - - - -
-
- Contact #: -
-
- Address: - - - - - - - -
- + +
+ Shipping + Address: +
+
+ Name: + + + + +
+
+ Contact #: + +
+
+ Address: + + + + + + + +
+ + +
+ Billing + Address: +
+
+ Name: + + + + +
+
+ Contact #: + +
+
+ Address: + + + + + + + +
+
$customer) { ?> - $address) { ?> - -
-
-
-
- > - - -
- -
- > - - -
-
- - -
-
-
-
- - - - -
-
- - -
- - -
-
-
+ $address) { ?> + +
+
+
+
+ > + + +
+
+ > + +
- + + +
+
+
+ +
+ + + + +
+
+ + +
+ + +
+
+
+ +
+
+ @@ -382,23 +449,29 @@ if ($_SESSION["isVendor"] == true) { @@ -1434,7 +1604,7 @@ if ($_SESSION["isVendor"] == true) {
- +
- " + data-value=' '> + + - product - " + alt="product"> + - " alt="product"> - " + alt="product"> + - - - Received - -
+ + + + Received + +
- ' data-bs-toggle="modal" + data-bs-target="#productDetails"> + + - product - " + alt="product"> + - " alt="product"> - " + alt="product"> + + ?> - - + + Refund Requested'; + echo 'Refund Requested'; } elseif ($order['return_order']['status'] === 'To Ship') { - echo 'For Refund'; + echo 'For Refund'; } else { $orderDate = strtotime($order['updatedAt']); $sevenDaysAfterOrder = strtotime('+7 days', $orderDate); // Seven days after the order date - if ($currentDate >= $sevenDaysAfterOrder) { + if ($currentDate >= $sevenDaysAfterOrder || $order['isRate']=== true ) { echo ''; - } else { - echo 'Return/Refund'; - } - } - ?> -