From be6b818f76092a70ffa7305ba137bef2005c95d3 Mon Sep 17 00:00:00 2001 From: raymart Date: Mon, 26 Feb 2024 08:34:06 +0800 Subject: [PATCH 1/3] Vendor list card hide the level and add href --- catalog-single-vendor.php | 64 ++++++++++++++++++++++++++------------- index.php | 43 ++++++++++++++++---------- vendor-list.php | 17 ++++++++--- wishlist.php | 10 +++--- 4 files changed, 88 insertions(+), 46 deletions(-) diff --git a/catalog-single-vendor.php b/catalog-single-vendor.php index 6923744..1d8b0ce 100644 --- a/catalog-single-vendor.php +++ b/catalog-single-vendor.php @@ -217,14 +217,15 @@ if ($_SESSION["userId"] <> "") {
- + " alt="vendor img">vendor img - + ?>" alt="vendor img">vendor img +
@@ -234,20 +235,25 @@ if ($_SESSION["userId"] <> "") {

( Retail Business )

-
@@ -311,17 +317,18 @@ if ($_SESSION["userId"] <> "") {
">
-
+ +
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) : ?> @@ -362,9 +371,22 @@ if ($_SESSION["userId"] <> "") { Inquire + +
-
+ + +
@@ -864,7 +886,7 @@ if ($_SESSION["userId"] <> "") { -
+ diff --git a/index.php b/index.php index 3a27575..4b4dd0e 100644 --- a/index.php +++ b/index.php @@ -568,6 +568,7 @@ if ($_SESSION["userId"] <> "") {
+ "> "") { + - - edit + + edit + + edit - edit - + "") { + "") { + + +
@@ -1476,6 +1485,7 @@ if ($_SESSION["userId"] <> "") {
+ "> "") { +
-
Seller Products
+ +
Seller Products
+
-
Seller since
+ +
Seller since
+

diff --git a/wishlist.php b/wishlist.php index b3005f0..a1e189d 100644 --- a/wishlist.php +++ b/wishlist.php @@ -182,7 +182,8 @@ if ($_SESSION["userId"] <> "") { ">
- + " class="image"> + " alt="Product" /> @@ -403,7 +404,8 @@ if ($_SESSION["userId"] <> "") {
-
+ + -
+ From 54ab59abb25ed946d5255aa2a7ce731c41b63a42 Mon Sep 17 00:00:00 2001 From: Erwin Galang Date: Mon, 26 Feb 2024 06:06:08 +0000 Subject: [PATCH 2/3] fixes for contact us and contact seller --- admin/config.php | 8 ++++---- functions.php | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/admin/config.php b/admin/config.php index 57d9763..f365e05 100644 --- a/admin/config.php +++ b/admin/config.php @@ -1,8 +1,8 @@ Greetings from Obanana!
    @@ -505,7 +506,7 @@ function sendEmail_obanana($fName, $lName, $email, $phone, $message) ], "To" => [ [ - "Email" => $testEmail, + "Email" => $salesEmail, "Name" => "Subscriber" ] ], @@ -603,8 +604,9 @@ function sendEmail_customer($fName, $lName, $email) function contact_Seller($cstm_email, $prd_name, $prd_qnty, $message) { if($_SESSION["is_test"]==true && $_SESSION["test_email_rcpt"]!=""){ - $testEmail = $_SESSION["test_email_rcpt"]; + $cstm_email = $_SESSION["test_email_rcpt"]; } + $salesEmail = $_SESSION["sales_email"]; $msgto_seller = "

    Greetings from Obanana!

      @@ -623,7 +625,7 @@ function contact_Seller($cstm_email, $prd_name, $prd_qnty, $message) ], "To" => [ [ - "Email" => $testEmail, + "Email" => $salesEmail, "Name" => "Subscriber" ] ], @@ -661,9 +663,9 @@ function contact_Seller($cstm_email, $prd_name, $prd_qnty, $message) function contact_Inquirer($cstm_email) { - // if($_SESSION["is_test"]==true && $_SESSION["test_email_rcpt"]!=""){ - // $testEmail = $_SESSION["test_email_rcpt"]; - // } + if($_SESSION["is_test"]==true && $_SESSION["test_email_rcpt"]!=""){ + $cstm_email = $_SESSION["test_email_rcpt"]; + } $msgto_inquirer = "

      Greetings from Obanana!

        @@ -681,8 +683,8 @@ function contact_Inquirer($cstm_email) ], "To" => [ [ - // "Email" => $cstm_email, - "Email" => "stacyjoycemapano@gmail.com", + "Email" => $cstm_email, + //"Email" => "stacyjoycemapano@gmail.com", "Name" => "Subscriber" ] From 84f86370eb4559668ba7dd2fcc237021201a948a Mon Sep 17 00:00:00 2001 From: Stacy Date: Mon, 26 Feb 2024 18:11:53 +0800 Subject: [PATCH 3/3] product page enhancement and vendor dashboard --- checkouttest.php | 6 +- header.php | 8 +-- product-left-sidebar.php | 143 +++++++++++++++++++++++---------------- vendor-dashboard.php | 12 ++-- vendor-settings.php | 8 ++- 5 files changed, 106 insertions(+), 71 deletions(-) diff --git a/checkouttest.php b/checkouttest.php index 6a07a4f..f0ad9e4 100644 --- a/checkouttest.php +++ b/checkouttest.php @@ -605,7 +605,8 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] Subtotal: -
        + + +
diff --git a/header.php b/header.php index 71d2a17..3477429 100644 --- a/header.php +++ b/header.php @@ -977,15 +977,15 @@
  • Top Collection
  • Categories
  • -
  • Offers
  • +
  • Top Vendors
  • Services
  • New Arrivals
  • -
  • Client - Review
  • -
  • Instagram Feed
  • + + diff --git a/product-left-sidebar.php b/product-left-sidebar.php index 1e39dd0..0c7ec8f 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -320,7 +320,9 @@ if (isset($_GET['id'])) { $productImage = $i; } ?> - + + +
    -
    + +
    -
    + + +
    As low as @@ -397,32 +402,32 @@ if (isset($_GET['id'])) {
      - -
    • - product - -

      - -
    • -
      + $main_product_image = isset($product_details["product_image"]) ? $product_details["product_image"] : 'https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg'; + ?> + +
    • + product + +

      + +
    • +
      - $variation) { - $variationImage = isset($variation["product_image"]) ? $variation["product_image"] : 'https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg'; -?> - -
    • - product - -

      - -
    • -
      - + $variation) { + $variationImage = isset($variation["product_image"]) ? $variation["product_image"] : 'https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg'; + ?> + +
    • + product + +

      + +
    • +
      +
    @@ -462,35 +467,57 @@ foreach ($variation_details as $index => $variation) { - + +
    -
    -
    -
    - " id="qty-input" /> -
    +
    -
    - -
    +
    + + +
    Add To Cart'; - echo ''; - } else { - if (!empty($product_details['regular_price']) || !empty($product_details['sale_price'])) { - echo '
    '; - echo ''; - } else { - echo ''; - } - } - } else { - echo '

    Please log in to add to cart.

    '; - } -?> + if ($_SESSION["isLoggedIn"]) { + if ($product_details['product_type'] === "variable") { + echo '
    -
    '; + echo ''; + echo '
    +
    '; + echo '
    '; + echo '
    + +
    '; + + } else { + if (!empty($product_details['regular_price']) || !empty($product_details['sale_price'])) { + echo '
    -
    '; + echo ''; + echo '
    +
    '; + echo '
    '; + echo ''; + echo '
    + +
    '; + } else { + echo ''; + } + } + } else { + echo ''; + } + ?> + + + @@ -509,10 +536,9 @@ foreach ($variation_details as $index => $variation) { // echo '

    Please log in to add to cart.

    '; // } ?> --> +
    - - diff --git a/vendor-settings.php b/vendor-settings.php index 3758f5f..b02ec41 100644 --- a/vendor-settings.php +++ b/vendor-settings.php @@ -144,12 +144,16 @@ if ($_SESSION["userId"] <> "") {
    -
    +
    - alt="vendor image"> + + + alt="vendor image">