From 4b996b873cfaae78c22a7c4f693e67ab0535c889 Mon Sep 17 00:00:00 2001 From: mark H Date: Tue, 21 May 2024 09:18:10 +0800 Subject: [PATCH] obanana chat --- about-us.php | 124 +- cart.php | 116 +- cart1.php | 124 +- catalog-single-vendor.php | 116 +- checkout.php | 116 +- checkouttest.php | 116 +- contact-us.php | 124 +- faq.php | 124 +- footer.php | 70 +- forget_otp.php | 116 +- forget_password_reset.php | 116 +- forgot_password.php | 124 +- header.php | 2853 ++++++++++++++++++++++++------ index.php | 115 -- login.php | 124 +- more-vendors.php | 116 +- next_day_delivery.php | 124 +- offer.php | 162 +- privacy-policy.php | 116 +- product-left-sidebar.php | 1959 +++++++++++--------- prohibited-item.php | 116 +- register.php | 116 +- register_customer.php | 124 +- register_otp.php | 116 +- register_vendor.php | 116 +- same_day_delivery_old.php | 116 +- shop-left-sidebar-col-4.php | 124 +- shop-list-left-sidebar-test.php | 116 +- shop-list-left-sidebar.php | 116 +- shop-list-left-sidebar2.php | 116 +- terms-condition.php | 116 +- user-history.php | 116 +- user-profile.php | 116 +- user-refund-history.php | 116 +- vendor-all-product-list.php | 116 +- vendor-dashboard-orders-edit.php | 116 +- vendor-dashboard.php | 713 ++++---- vendor-list.php | 116 +- vendor-payments.php | 117 +- vendor-payouts.php | 116 +- vendor-profile.php | 124 +- vendor-refund-history.php | 116 +- vendor-registration-steps.php | 116 +- vendor-settings.php | 116 +- vendor-uploads.php | 116 +- wishlist.php | 116 +- 46 files changed, 3870 insertions(+), 6723 deletions(-) diff --git a/about-us.php b/about-us.php index 4c7807b..205b216 100644 --- a/about-us.php +++ b/about-us.php @@ -458,129 +458,7 @@ - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/cart.php b/cart.php index 3366e5d..fef4753 100644 --- a/cart.php +++ b/cart.php @@ -1289,121 +1289,7 @@ if ($_SESSION["userId"] <> "") { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/cart1.php b/cart1.php index 5121ade..9f09543 100644 --- a/cart1.php +++ b/cart1.php @@ -1630,129 +1630,7 @@ - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/catalog-single-vendor.php b/catalog-single-vendor.php index bed6ddd..2f98fb6 100644 --- a/catalog-single-vendor.php +++ b/catalog-single-vendor.php @@ -1223,121 +1223,7 @@ maxPriceInput.addEventListener('input', function() { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/checkout.php b/checkout.php index add01dd..ffed511 100644 --- a/checkout.php +++ b/checkout.php @@ -1450,121 +1450,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/checkouttest.php b/checkouttest.php index 358a6d7..f82159b 100644 --- a/checkouttest.php +++ b/checkouttest.php @@ -2108,121 +2108,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/contact-us.php b/contact-us.php index a51ac1c..b2c2021 100644 --- a/contact-us.php +++ b/contact-us.php @@ -315,129 +315,7 @@ - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/faq.php b/faq.php index 5391a70..00b28ea 100644 --- a/faq.php +++ b/faq.php @@ -471,129 +471,7 @@ - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/footer.php b/footer.php index 06eaa3c..10f6dc5 100644 --- a/footer.php +++ b/footer.php @@ -20,13 +20,18 @@
@@ -59,35 +64,36 @@ if ($_SESSION["isVendor"]) { ?> - - - - - Order History --> + - - - - - + + @@ -121,8 +127,11 @@
- - + +
@@ -140,10 +149,18 @@ @@ -151,7 +168,8 @@ @@ -169,7 +187,7 @@ - +
@@ -179,7 +197,7 @@
-
+
@@ -195,4 +213,4 @@
- + \ No newline at end of file diff --git a/forget_otp.php b/forget_otp.php index e524738..77a7fc8 100644 --- a/forget_otp.php +++ b/forget_otp.php @@ -328,121 +328,7 @@ var pass2I = document.getElementById(`passInput2`);
- - - +
diff --git a/forget_password_reset.php b/forget_password_reset.php index 750b982..7f59019 100644 --- a/forget_password_reset.php +++ b/forget_password_reset.php @@ -162,121 +162,7 @@
- - - +
diff --git a/forgot_password.php b/forgot_password.php index d8c55a5..78a8e0c 100644 --- a/forgot_password.php +++ b/forgot_password.php @@ -247,129 +247,7 @@
- -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/header.php b/header.php index 4d348aa..4df2f85 100644 --- a/header.php +++ b/header.php @@ -23,143 +23,1748 @@ if ($_SESSION["userId"] <> "") {
+ +
+ +
+ +
@@ -167,10 +1772,18 @@ if ($_SESSION["userId"] <> "") {
    -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
@@ -190,39 +1803,41 @@ if ($_SESSION["userId"] <> "") { - + - + - - - + + +
@@ -236,13 +1851,19 @@ if ($_SESSION["userId"] <> "") {

Download ObananaPay Now

-

Enjoy promos, discounts and more when you download, register and pay with ObananaPay.

+

Enjoy promos, discounts and more when you download, register and pay with + ObananaPay.

@@ -272,7 +1893,8 @@ if ($_SESSION["userId"] <> "") {
"") {
@@ -906,7 +2582,8 @@ if ($_SESSION["userId"] <> "") {
@@ -925,10 +2602,10 @@ if ($_SESSION["userId"] <> "") { - - - - + + +
    @@ -1059,7 +2736,8 @@ if ($_SESSION["userId"] <> "") {
  • Privacy Policy
--> -
- - - +
diff --git a/next_day_delivery.php b/next_day_delivery.php index 3c748a5..db5b03f 100644 --- a/next_day_delivery.php +++ b/next_day_delivery.php @@ -982,129 +982,7 @@ maxPriceInput.addEventListener('input', function() {
- - - +
diff --git a/offer.php b/offer.php index 92804d7..7b6efe1 100644 --- a/offer.php +++ b/offer.php @@ -22,7 +22,8 @@ if ($_SESSION["userId"] <> "") { oBanana B2B - Elevate Your Business - + @@ -33,6 +34,9 @@ if ($_SESSION["userId"] <> "") { + @@ -49,22 +53,22 @@ if ($_SESSION["userId"] <> "") { @@ -228,16 +232,20 @@ if ($_SESSION["userId"] <> "") {
- +
- 3 + 3
- 4 + 4
@@ -271,121 +279,7 @@ if ($_SESSION["userId"] <> "") {
- - - +
diff --git a/privacy-policy.php b/privacy-policy.php index a4e2c3e..64538cc 100644 --- a/privacy-policy.php +++ b/privacy-policy.php @@ -444,121 +444,7 @@
- - - +
diff --git a/product-left-sidebar.php b/product-left-sidebar.php index 24c10ae..2e4f79e 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -55,7 +55,8 @@ if (isset($_GET['id'])) { oBanana B2B - Elevate Your Business - + @@ -80,165 +81,172 @@ if (isset($_GET['id'])) { - + @@ -319,8 +327,9 @@ if (isset($_GET['id'])) { -
- + - -
+ +
@@ -338,8 +349,8 @@ if (isset($_GET['id'])) { -
- + - - - -
+ + +
@@ -362,8 +374,10 @@ if (isset($_GET['id'])) {
- -
+ +
+
@@ -378,7 +392,9 @@ if (isset($_GET['id'])) { Be the first to review this product
--> -
+
+ +
@@ -444,12 +467,12 @@ if (isset($_GET['id'])) { -
-
- VARIATION -
-
    - - - -
  • - product - -

    - -
  • -
    + +
  • + product + +

    +

    + +
  • +
    - $variation) { $variationImage = isset($variation["images"]) ? $variation["images"] : 'https://api.obanana.com/images/storage/web_images/1710214273217-no_image.png'; ?> - -
  • - product - -

    - -
  • -
    - )"> +
  • + product + +

    +

    + +
  • + + -
-
+
- + function selectVariation(variation) { + globalVariation = variation; + console.log("Variation selected: ", variation); + + document.getElementById("productDescription").innerHTML = variation + .specifications; + document.getElementById("shortDescription").innerHTML = variation + .product_description; + document.getElementById("productTitle").innerText = variation.product_name; + document.getElementById("product_Id").value = variation._id; + var productImage = variation.images ? variation.images.split(',')[0] : + 'https://api.obanana.com/images/storage/web_images/1710214273217-no_image.png'; + $('.zoom-image-hover').trigger('zoom.destroy'); + document.getElementById('mainProductImage').src = productImage; + $('.zoom-image-hover').zoom(); + document.getElementById("productTitlemodal").innerText = variation + .product_name; + document.getElementById('mainProductImagemodal').src = productImage; + + if (variation.regular_price || variation.sale_price) { + document.getElementById("productPrice").innerText = variation + .sale_price ? variation.sale_price : variation.regular_price; + document.getElementById("productStock").innerText = variation.stock; + document.getElementById('addToCartButton').disabled = false; + document.getElementById("addToCartButton").style.display = "block"; + document.getElementById("contactSellerButton").style.display = "none"; + } else { + document.getElementById("productPrice").innerText = + "Contact seller for price"; + document.getElementById("productStock").innerText = "Available"; + document.getElementById('addToCartButton').disabled = true; + document.getElementById("addToCartButton").style.display = "none"; + document.getElementById("contactSellerButton").style.display = "block"; + } + } + " id="qty-input" />
+
--> -
+
-
'; - echo ''; - echo '
+
'; - echo '
'; - echo ''; - echo '
- -
'; - } else { + // if ($product_details['product_type'] === "variables") { + // echo '
-
'; + // echo ''; + // echo '
+
'; + // echo '
'; + // echo ''; + // echo '
+ // + //
'; + // } else { if (!empty($product_details['regular_price']) || !empty($product_details['sale_price'])) { echo '
-
'; @@ -573,9 +613,12 @@ if (isset($_GET['id'])) {
'; } else { - echo ''; + // echo ''; + echo ''; } - } + // } } else if (($_SESSION["isCustomer"] == false) && ($_SESSION["isVendor"] == false)) { echo ' @@ -629,45 +674,70 @@ if (isset($_GET['id'])) {
-
+
-
+
- +
-
+
+ +
- " id="qty-input" min="" /> + " + id="qty-input" + min="" />
-
+
DETAILED REQUIREMENTS
- - - ' /> - " id="qty-input" min="" /> + + + ' /> + " + id="qty-input" + min="" /> - ' /> + ' />
@@ -689,223 +759,264 @@ if (isset($_GET['id'])) {
-->
- - 0) : ?> - - - - + + 0) : ?> + + + + - - Inquire - - Inquire - - -
+ + Inquire + + Inquire + +
+ @@ -1812,86 +2259,106 @@ if (isset($_GET['id'])) { ?> -
-
-
-
- - - "> - " /> - " /> - - - - +
+
+
+
+ + + "> + " /> + " /> + + + + - - - -
- - 0) : ?> - - + + +
+ + 0) : ?> + + - - - + + + - - + + - - + + - -
-
+
-
- - + -
">
- +
"> +
+ - - + - -
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dutmmy text ever since the 1500s, when an unknown printer took a galley.
- - - 0) : ?> - - - - - - Inquire - - Inquire - - + +
Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum is simply dutmmy text ever since the 1500s, when an + unknown printer took a galley.
+ + + 0) : ?> + + + + + + Inquire + + Inquire + + - - - - + - -
+
+
@@ -1937,42 +2404,53 @@ if (isset($_GET['id'])) {
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
Handbag leather purse for women +
Handbag leather purse + for women
@@ -2006,7 +2484,8 @@ if (isset($_GET['id'])) { Size
    -
  • S
  • +
  • S
  • M
  • X
  • XL
  • @@ -2080,121 +2559,7 @@ if (isset($_GET['id'])) {
- - - +
diff --git a/prohibited-item.php b/prohibited-item.php index b74c2b7..ffc37b7 100644 --- a/prohibited-item.php +++ b/prohibited-item.php @@ -294,121 +294,7 @@
- - - +
diff --git a/register.php b/register.php index 3acd4e0..12ac1e8 100644 --- a/register.php +++ b/register.php @@ -175,121 +175,7 @@ $_SESSION["isVendor"] = false;
- - - +
diff --git a/register_customer.php b/register_customer.php index 16af521..bfa0707 100644 --- a/register_customer.php +++ b/register_customer.php @@ -230,129 +230,7 @@ $customerData = json_decode($customers, true);
- - - +
diff --git a/register_otp.php b/register_otp.php index 8911324..2ae6844 100644 --- a/register_otp.php +++ b/register_otp.php @@ -181,121 +181,7 @@
- - - +
diff --git a/register_vendor.php b/register_vendor.php index 6347247..5e95ea1 100644 --- a/register_vendor.php +++ b/register_vendor.php @@ -298,121 +298,7 @@ $vendorData = json_decode($vendors, true);
- - - +
diff --git a/same_day_delivery_old.php b/same_day_delivery_old.php index 1bf18b0..a73b6bd 100644 --- a/same_day_delivery_old.php +++ b/same_day_delivery_old.php @@ -268,121 +268,7 @@ if ($_SESSION["userId"] <> "") {
- - - +
diff --git a/shop-left-sidebar-col-4.php b/shop-left-sidebar-col-4.php index 4b172a1..8610584 100644 --- a/shop-left-sidebar-col-4.php +++ b/shop-left-sidebar-col-4.php @@ -1080,129 +1080,7 @@ - - - +
diff --git a/shop-list-left-sidebar-test.php b/shop-list-left-sidebar-test.php index 54a2481..7dc7215 100644 --- a/shop-list-left-sidebar-test.php +++ b/shop-list-left-sidebar-test.php @@ -794,121 +794,7 @@ if (!empty($_GET['minPrice']) || !empty($_GET['maxPrice']) || !empty($_GET['cate - - - +
diff --git a/shop-list-left-sidebar.php b/shop-list-left-sidebar.php index d84a021..45a1cd1 100644 --- a/shop-list-left-sidebar.php +++ b/shop-list-left-sidebar.php @@ -1168,121 +1168,7 @@ maxPriceInput.addEventListener('input', function() { - - - +
diff --git a/shop-list-left-sidebar2.php b/shop-list-left-sidebar2.php index 74da843..67ad455 100644 --- a/shop-list-left-sidebar2.php +++ b/shop-list-left-sidebar2.php @@ -795,121 +795,7 @@ if ($_SESSION["userId"] <> "") { - - - +
diff --git a/terms-condition.php b/terms-condition.php index 923ea8e..8ff6001 100644 --- a/terms-condition.php +++ b/terms-condition.php @@ -450,121 +450,7 @@ - - - +
diff --git a/user-history.php b/user-history.php index f1c0418..022101f 100644 --- a/user-history.php +++ b/user-history.php @@ -1378,121 +1378,7 @@ if ($_SESSION["isVendor"] == true) { - - - +
diff --git a/user-profile.php b/user-profile.php index dbc20f2..4892afb 100644 --- a/user-profile.php +++ b/user-profile.php @@ -1355,121 +1355,7 @@ if ($_SESSION["isVendor"] == true) { - - - +
diff --git a/user-refund-history.php b/user-refund-history.php index 2fffbd7..3e74a3f 100644 --- a/user-refund-history.php +++ b/user-refund-history.php @@ -1261,121 +1261,7 @@ if ($_SESSION["isVendor"] == true) { - - - +
diff --git a/vendor-all-product-list.php b/vendor-all-product-list.php index 43825fa..3f412aa 100644 --- a/vendor-all-product-list.php +++ b/vendor-all-product-list.php @@ -488,121 +488,7 @@ $products = productList(); - - - +
diff --git a/vendor-dashboard-orders-edit.php b/vendor-dashboard-orders-edit.php index 489d64c..fad233d 100644 --- a/vendor-dashboard-orders-edit.php +++ b/vendor-dashboard-orders-edit.php @@ -336,121 +336,7 @@ $array = json_decode($result, true); - - - +
diff --git a/vendor-dashboard.php b/vendor-dashboard.php index a7f7c2e..43e4cb9 100644 --- a/vendor-dashboard.php +++ b/vendor-dashboard.php @@ -52,7 +52,8 @@ if ($_SESSION["isCustomer"] == true) { oBanana B2B - Elevate Your Business - + @@ -71,9 +72,9 @@ if ($_SESSION["isCustomer"] == true) { - - + + @@ -81,21 +82,37 @@ if ($_SESSION["isCustomer"] == true) { @@ -118,10 +135,10 @@ if ($_SESSION["isCustomer"] == true) {
-
-
+
+
-
+

Vendor Dashboard

@@ -142,8 +159,8 @@ if ($_SESSION["isCustomer"] == true) {
-
-
+
+
@@ -153,9 +170,13 @@ if ($_SESSION["isCustomer"] == true) { -
- -
+
+
+ +
+
@@ -163,9 +184,12 @@ if ($_SESSION["isCustomer"] == true) { - alt="vendor image"> + + alt="vendor image"> - vendor image + vendor image
@@ -182,7 +206,9 @@ if ($_SESSION["isCustomer"] == true) {
- + -
-
@@ -208,7 +232,7 @@ if ($_SESSION["isCustomer"] == true) {
Orders
- +

@@ -236,30 +260,23 @@ if ($_SESSION["isCustomer"] == true) {
- -
- - - - - - - - - - - - + +
+
ImageNameStatusCustomerTotalAction
+ + + + + + + + + + + - - - - + + + ?> - + - - - - + + + + --> - + @@ -498,22 +526,16 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10
-
ImageNameStatusCustomerTotalAction
- - + + + - edit - " + alt="edit" /> + - edit - + - - +

+

+
- - - -
+ + + + +
+
@@ -535,39 +557,47 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10 $product = $products[$i]; ?> - - - - - - - - + + + + + + + @@ -610,42 +640,53 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
Handbag leather purse for women +
Handbag leather purse + for women
@@ -679,7 +720,8 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10 Size
    -
  • S
  • +
  • S
  • M
  • X
  • XL
  • @@ -692,7 +734,8 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10
- +
@@ -709,16 +752,20 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10
- +
- 3 + 3
- 4 + 4
@@ -752,121 +799,7 @@ $style = "display: flex; height: 15px;font-weight:400; width:90px; margin-top:10
- - - +
diff --git a/vendor-list.php b/vendor-list.php index 976e198..25333d3 100644 --- a/vendor-list.php +++ b/vendor-list.php @@ -465,121 +465,7 @@ $products = productList();
- - - +
diff --git a/vendor-payments.php b/vendor-payments.php index 2474204..525d735 100644 --- a/vendor-payments.php +++ b/vendor-payments.php @@ -124,6 +124,7 @@ if ($_SESSION["isCustomer"] == true) { + @@ -696,121 +697,7 @@ if ($_SESSION["isCustomer"] == true) {
- - - +
diff --git a/vendor-payouts.php b/vendor-payouts.php index 3d21ab0..a933f5d 100644 --- a/vendor-payouts.php +++ b/vendor-payouts.php @@ -434,121 +434,7 @@ $vendorPayoutData = json_decode($response, true);
- - - +
diff --git a/vendor-profile.php b/vendor-profile.php index f6ca0df..7509a3b 100644 --- a/vendor-profile.php +++ b/vendor-profile.php @@ -417,129 +417,7 @@ - - - +
diff --git a/vendor-refund-history.php b/vendor-refund-history.php index 4667f02..2bdf28c 100644 --- a/vendor-refund-history.php +++ b/vendor-refund-history.php @@ -1302,121 +1302,7 @@ if ($_SESSION["isCustomer"] == true) { - - - +
diff --git a/vendor-registration-steps.php b/vendor-registration-steps.php index e2eb6f6..b3dff21 100644 --- a/vendor-registration-steps.php +++ b/vendor-registration-steps.php @@ -223,121 +223,7 @@ - - - +
diff --git a/vendor-settings.php b/vendor-settings.php index 82c986c..3f7f0c8 100644 --- a/vendor-settings.php +++ b/vendor-settings.php @@ -1922,121 +1922,7 @@ if ($_SESSION["isCustomer"] == true) { - - - +
diff --git a/vendor-uploads.php b/vendor-uploads.php index 36c1391..762af21 100644 --- a/vendor-uploads.php +++ b/vendor-uploads.php @@ -932,121 +932,7 @@ if ($_SESSION["isCustomer"] == true) { - - - +
diff --git a/wishlist.php b/wishlist.php index bbe9cdf..012cde7 100644 --- a/wishlist.php +++ b/wishlist.php @@ -581,121 +581,7 @@ if ($_SESSION["isVendor"] == true) { - - - +
Image
- - + + + - edit - " alt="edit" /> + - edit - + - -
+ + + +