From 8fa22bb766d1fb3ec29ff696348b75234d7e5d52 Mon Sep 17 00:00:00 2001 From: gelonspr Date: Thu, 21 Mar 2024 17:20:34 +0800 Subject: [PATCH 1/3] added vendor payments tab and vendor payments details modal box --- vendor-payments.php | 704 +++++++++++++++++++++++++++++++++++++++++++ vendor-user-tabs.php | 1 + 2 files changed, 705 insertions(+) create mode 100644 vendor-payments.php diff --git a/vendor-payments.php b/vendor-payments.php new file mode 100644 index 0000000..be9c8ae --- /dev/null +++ b/vendor-payments.php @@ -0,0 +1,704 @@ + "") { + $_SESSION["isLoggedIn"] = true; + $vendorLoginId = searchVendorbyLoginId($_SESSION["userId"]); + $vendorLoginIdjson = json_decode($vendorLoginId, true); + if (isset($vendorLoginIdjson['results'][0])) { + $vendorData = $vendorLoginIdjson['results'][0]; + $vendorId = $vendorData['_id']; + $_SESSION["LoggedInVendorId"] = $vendorId; + } +} else { + $_SESSION["isLoggedIn"] = false; + header("location: login.php"); +} +$products = productList(); +$shopOrders = getOrderbyVendorId($vendorId); +$vendorOrderss = json_decode($shopOrders); + +if (is_array($vendorOrderss)) { + $vendorOrders = json_decode($shopOrders); +} elseif (is_object($vendorOrderss) && property_exists($vendorOrderss, 'message')) { + $vendorOrders = []; +} else { + echo "Unknown type or no 'message' property found."; +} +?> + + + + + + + + + oBanana B2B - Elevate Your Business + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ + + + + + + + + + +
+
+
+
+
+
+

User History

+
+
+ +
    +
  • Home
  • +
  • History
  • +
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ + +
+ +
+ + +
+ + alt="vendor image"> + + vendor image + + +
+
+ + + + +
+
+
+
+
+
+
+
Payments
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Payment MethodAmountStatusDescriptionDate CreatedAction
+
+ +
+
+
+
+
+
+
+ + + + + + + + + + +
+
+
+
+ +
+
+ 3 +
+
+ +
+
+ 4 +
+
+ +
+ +
+
+
+ + + + + + + + +
+ +
+
+ 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 +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vendor-user-tabs.php b/vendor-user-tabs.php index fc69951..cb154a5 100644 --- a/vendor-user-tabs.php +++ b/vendor-user-tabs.php @@ -9,6 +9,7 @@ $current_page = basename($_SERVER['PHP_SELF']);
  • >Uploads
  • >Settings (edit)
  • >Vendor Refund History
  • +
  • >Payments
  • -- 2.40.1 From 3d1b73ee47b0f5418c82b3eafbe43f3d215373aa Mon Sep 17 00:00:00 2001 From: gelonspr Date: Fri, 22 Mar 2024 09:11:52 +0800 Subject: [PATCH 2/3] added louie's vendor-payout tab --- vendor-user-tabs.php | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor-user-tabs.php b/vendor-user-tabs.php index cb154a5..ec661f1 100644 --- a/vendor-user-tabs.php +++ b/vendor-user-tabs.php @@ -9,6 +9,7 @@ $current_page = basename($_SERVER['PHP_SELF']);
  • >Uploads
  • >Settings (edit)
  • >Vendor Refund History
  • +
  • >Payouts>Payments
  • -- 2.40.1 From cb6440b1b5f9bda2e1f412cc1d5fa42380eb9823 Mon Sep 17 00:00:00 2001 From: gelonspr Date: Fri, 22 Mar 2024 09:24:17 +0800 Subject: [PATCH 3/3] fixed vendor user tabs --- vendor-user-tabs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor-user-tabs.php b/vendor-user-tabs.php index 467f047..8c653e5 100644 --- a/vendor-user-tabs.php +++ b/vendor-user-tabs.php @@ -9,8 +9,9 @@ $current_page = basename($_SERVER['PHP_SELF']);
  • >Uploads
  • >Settings (edit)
  • >Vendor Refund History
  • -
  • >Payouts>Payments
  • +
  • >Payouts
  • + -- 2.40.1