diff --git a/admin/config.php b/admin/config.php index ae055ef..2c49fab 100644 --- a/admin/config.php +++ b/admin/config.php @@ -1,8 +1,8 @@ + + + \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index df56492..814484e 100644 --- a/admin/index.php +++ b/admin/index.php @@ -48,13 +48,11 @@ if($_SESSION["user_type"]!="admin"){ - -
- - - - + + + +
@@ -65,13 +63,21 @@ if($_SESSION["user_type"]!="admin"){
-
+
+
+ + +
+
+
    diff --git a/admin/left-main-sidebar.php b/admin/left-main-sidebar.php index 9f13f0b..ecffa77 100644 --- a/admin/left-main-sidebar.php +++ b/admin/left-main-sidebar.php @@ -103,7 +103,7 @@
  • - + Products diff --git a/admin/product-edit.php b/admin/product-edit.php index 4ec941c..81cfeb2 100644 --- a/admin/product-edit.php +++ b/admin/product-edit.php @@ -1130,10 +1130,10 @@ $vendorId = $_SESSION["vendorId"]; promises.push(promise); } - + // 03-14-2024 Jun Jihad modified this block of code to properly upload images with comma in the filename Promise.all(promises) .then(filenames => { - const updatedImages = existingImages.concat(filenames.map(filename => `https:///images/storage/product_uploads/${filename}`)); + const updatedImages = existingImages.concat(filenames.map(filename => `https:///images/storage/product_uploads/${encodeURIComponent(filename)}`)); if (!Array.isArray(updatedImages)) { console.error('Updated images is not an array:', updatedImages); @@ -1154,6 +1154,7 @@ $vendorId = $_SESSION["vendorId"]; body: JSON.stringify(payload) }); }) + // 03-14-2024 Jun Jihad modified this block of code to properly upload images with comma in the filename .then(response => { if (response.ok) { console.log('Images uploaded successfully'); diff --git a/admin/user-card.php b/admin/user-card.php index 228c3a3..4826885 100644 --- a/admin/user-card.php +++ b/admin/user-card.php @@ -83,560 +83,8 @@ $users = getUsers();
    - - + +
    diff --git a/admin/vendor-card.php b/admin/vendor-card.php index d8ab00d..79fea72 100644 --- a/admin/vendor-card.php +++ b/admin/vendor-card.php @@ -4,7 +4,7 @@ include "../functions.php"; $_SESSION["url"] = $_SERVER['REQUEST_URI']; if ($_SESSION["userId"] <> "") { $_SESSION["isLoggedIn"] = true; - $customer_data = getCustomerbyLoginId($_SESSION["userId"]); + //$customer_data = getCustomerbyLoginId($_SESSION["userId"]); } else { $_SESSION["isLoggedIn"] = false; header("location: login.php"); @@ -14,8 +14,6 @@ if ($_SESSION["user_type"] != "admin") { header("location: login.php?alert=Only admins allowed here!"); } $products = productList(); - -$vendorSearchResult = $_SESSION["vendorSearchResult"]; ?> @@ -66,8 +64,7 @@ $vendorSearchResult = $_SESSION["vendorSearchResult"]; - - + @@ -92,22 +89,17 @@ $vendorSearchResult = $_SESSION["vendorSearchResult"]; - -
    -
    -
    - - -
    -
    +
    + + +
      -
      -
      - +
    • + + + + + + + + oBanana B2B - Admin Dashboard + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + + + + + +
      + + + + + + + +
      +
      +
      Vendor Search Results
      +
      + +
      +
      +
      +
      + +
      +
      + "> + + +
      +
      +
      +
      +
      Seller Products
      + +

      +
      +
      +
      +
      +
      Seller since
      +

      +
      +
      +
      + +
      +
      +
      + +
      +
      +
      + + + + +
      +
      +
      + $productListVendor) { + // echo "$product .":" . $productListVendor"; + // $vendorOfProduct = getVendorbyId($product['vendor_api_id']); + + $products = productListVendor($vendorId); + $totalProducts = count($products); + + + for ($i = 0; $i <= $totalProducts - 1; $i++) { + $product = $products[$i]; + ?> +
      +
      +
      +
      +
      + + edit + + edit + +
      +
      +
      +

      +

      ₱

      +
      +
      +
      +
      +
      +
      +
      +
      +
      + +
      +
      +
      +
      + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/admin/vendor-profile.php b/admin/vendor-profile.php index 2553644..f923609 100644 --- a/admin/vendor-profile.php +++ b/admin/vendor-profile.php @@ -68,636 +68,7 @@ $array = json_decode($vendor,true);
      - +
      @@ -789,7 +160,17 @@ $array = json_decode($vendor,true);
      -
      +
      +
      +
      + +
      +
      +

      Payments

      + +
      + +
      +
      + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      MethodAmountStatusPayoutDescriptionDate
      ObananaPay₱230 + Paid + No + Coach Swagger + Oct 20, 2018 + +
      ObananaPay₱550 + Paid + No + Toddler Shoes, Gucci Watch + Nov 15, 2018 + +
      ObananaPay₱325 + Paid + No + Hat Black Suits + Nov 18, 2018 + +
      PayMongo₱200 + Paid + No + T100 Power Bank + Nov 20, 2018 + +
      ObananaPay₱150 + Paid + Yes + Vodka Milk Tea + Dec 11, 2018 + +
      +
      +
      +
      +
      + +
      +
      + +
      +
      + +
      +
      +
      +
      + +
      +
      +

      Payouts

      + +
      + +
      +
      + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      AmountBankAccountNameDateStatus
      ₱1,230EastWest**** **** 1234Jon-Jon ManaayOct 20, 2018 + Deposited + + +
      ₱2,340EastWest**** **** 1234Jon-Jon ManaayOct 27, 2018 + Processing + + +
      +
      +
      +
      +
      +
      +
      + +
      diff --git a/cart1.php b/cart1.php index fc5e185..03b744e 100644 --- a/cart1.php +++ b/cart1.php @@ -356,7 +356,7 @@
    • Cart
    • Checkout
    • Compare
    • -
    • FAQ
    • +
    • FAQ
    • Login
    • Register
    • Track Order
    • @@ -645,7 +645,7 @@
    • Cart
    • Checkout
    • Compare
    • -
    • FAQ
    • +
    • FAQ
    • Login
    • Register
    • Track Order
    • @@ -1365,7 +1365,7 @@