From b0d8cb1bd1797b40e008b1ec60d8a76d801bc76a Mon Sep 17 00:00:00 2001 From: Jun Barroga Date: Thu, 22 Feb 2024 18:28:33 +0800 Subject: [PATCH] Vendor Search --- functions.php | 2 + more-vendors.php | 466 ++++++++++++++++++++++++++++++++++++- shop-list-left-sidebar.php | 97 +++++--- 3 files changed, 530 insertions(+), 35 deletions(-) diff --git a/functions.php b/functions.php index c752408..cffbd8a 100644 --- a/functions.php +++ b/functions.php @@ -136,6 +136,7 @@ function searchProducts($query) $query = 'asus'; $result = searchProducts($query); +// function searchVendor($query) { $query = str_replace(" ", "+", $query); @@ -166,6 +167,7 @@ function searchVendor($query) return json_encode($data); } +// // Example usage: diff --git a/more-vendors.php b/more-vendors.php index 49933b3..4048719 100644 --- a/more-vendors.php +++ b/more-vendors.php @@ -1 +1,465 @@ -This is more vendors page \ No newline at end of file + + "") { + $_SESSION["isLoggedIn"] = true; + $customer_data = getCustomerbyLoginId($_SESSION["userId"]); +} else { + $_SESSION["isLoggedIn"] = false; +} +$productSearchResult = $_SESSION["productSearchResult"]; +$vendorSearchResult = $_SESSION["vendorSearchResult"]; + +?> + + + + + + + + + oBanana B2B - Elevate Your Business + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ + + + + + +
+
+
+
+
+
+

Shop

+
+
+ + + +
+
+
+
+
+
+ + + +
+
+
+ +
+
+ + + + + + + + +
+
+
+
+ +
+
+ 3 +
+
+ +
+
+ 4 +
+
+ +
+ +
+
+
+ + + +
+ payment image +
+

Someone in new just bought

+
stylish baby shoes
+

10 Minutes ago

+
+ × +
+ + + +
+ +
+
+ 3 +
+
+ + + +
+ + + + +
+
+
+ whatsapp icon +
+
+
+ +
+ + + +
+
+
+

Features

+
+ + icon + +
+
+

Color Scheme

+
    +
  • +
  • +
  • +
  • +
  • +
+
+
+

Backgrounds

+ +
+
+

Full Screen mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

Dark mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

RTL mode

+
+
+
Rtl
+
On
+
Off
+
+
+
+
+

Clear local storage

+ Clear Cache & Default +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shop-list-left-sidebar.php b/shop-list-left-sidebar.php index b0efec5..f8dad2f 100644 --- a/shop-list-left-sidebar.php +++ b/shop-list-left-sidebar.php @@ -263,43 +263,72 @@ if (!empty($_GET['minPrice']) || !empty($_GET['maxPrice']) || !empty($_GET['cate -
-
-
Vendor Search Results
-
- -
-
-
-
- - - View Details +
+
+
Vendor Search Results
+ + +
+ +
+
+
+
+
+ + <?php echo $vendor['user_login']; ?> + + + +
+ +
+
+
Seller Products
+ +

+
+
+
+
+
Seller since
+

+
+
+
+ +
+
+
+ +
-
- -
- 2) : ?> - - -
-
- - - + +