diff --git a/admin/config.php b/admin/config.php index ad558da..d7fea8a 100644 --- a/admin/config.php +++ b/admin/config.php @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/assets/js/tester3.js b/assets/js/tester5.js similarity index 96% rename from assets/js/tester3.js rename to assets/js/tester5.js index 033da4c..396fff9 100644 --- a/assets/js/tester3.js +++ b/assets/js/tester5.js @@ -611,12 +611,14 @@ function popupAddToCart(product, productVendor, token, email, password, customer Unit Price: ${response.items[0].price} Subtotal: ${totalAmount} -
-
-
- -
+
+ +
+
-
+ +
+
+
- x +
`; getLatestOrders() diff --git a/catalog-single-vendor.php b/catalog-single-vendor.php index 4c1332d..6923744 100644 --- a/catalog-single-vendor.php +++ b/catalog-single-vendor.php @@ -1092,7 +1092,7 @@ if ($_SESSION["userId"] <> "") { '; + echo ''; } else { echo ''; } diff --git a/contact-seller-action.php b/contact-seller-action.php new file mode 100644 index 0000000..7b478db --- /dev/null +++ b/contact-seller-action.php @@ -0,0 +1,42 @@ + + 0) { - $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; +// $result = customerExists($_SESSION["email"]); +if ($response) { + $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; header("location: contact-us.php"); } -# 02-15-2024 Stacy added message sent \ No newline at end of file + +#02-19-2024 Stacy added email to be sent to customer +$response2 = sendEmail_customer( + $fName, + $lName, + $email, +); +$array = json_decode($response2,true); +var_dump($array); +header("location: contact-us.php"); + +if ($response2) { +// $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; +header("location: contact-us.php"); +} \ No newline at end of file diff --git a/contact-us.php b/contact-us.php index 68ad0ce..1a729e2 100644 --- a/contact-us.php +++ b/contact-us.php @@ -170,7 +170,7 @@ echo " "; } ?> diff --git a/functions.php b/functions.php index 48f1680..ef0387f 100644 --- a/functions.php +++ b/functions.php @@ -542,7 +542,6 @@ function sendEmail_obanana($fName, $lName, $email, $phone, $message) } - function sendEmail_customer($fName, $lName, $email) { // if($_SESSION["is_test"]==true && $_SESSION["test_email_rcpt"]!=""){ @@ -628,7 +627,7 @@ function contact_Seller($cstm_email, $prd_name, $prd_qnty, $message) "Name" => "Subscriber" ] ], - "Subject" => "Obanana Contact Us Form", + "Subject" => "Obanana Contact Seller Form", "TextPart" => "Greetings from Obanana!", "HTMLPart" => $msgto_seller ] @@ -688,7 +687,7 @@ function contact_Inquirer($cstm_email) "Name" => "Subscriber" ] ], - "Subject" => "Obanana Contact Us Form", + "Subject" => "Obanana Contact Seller Form", "TextPart" => "Greetings from Obanana!", "HTMLPart" => $msgto_inquirer ] diff --git a/header.php b/header.php index 9093372..4767466 100644 --- a/header.php +++ b/header.php @@ -386,13 +386,16 @@
Subtotal:
-
-
-
- -
+
+ +
+
-
+ +
+
+ + +
- - x +
"") { '; + echo ''; } else { echo ''; } diff --git a/product-left-sidebar.php b/product-left-sidebar.php index e05ab00..a325fa5 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -249,6 +249,21 @@ if (isset($_GET['id'])) {
+ + '; + echo $_SESSION["SuccessfullySent"]; + echo '
'; + unset($_SESSION["SuccessfullySent"]); + echo " "; + } + ?> +
@@ -494,7 +509,7 @@ foreach ($variation_details as $index => $variation) { To:
- +
@@ -516,7 +531,7 @@ foreach ($variation_details as $index => $variation) {
- " id="qty-input" min="" /> + " id="qty-input" min="" />
@@ -525,21 +540,30 @@ foreach ($variation_details as $index => $variation) {
DETAILED REQUIREMENTS
-
- - + + + + + '/> + " id="qty-input" min="" /> + + '/> + + +
+ - -
@@ -794,12 +818,14 @@ foreach ($variation_details as $index => $variation) { Unit Price: ${response.items[0].price} Subtotal: ${totalAmount} -
-
-
- -
+
+ +
+
-
+ +
+
+
- x +
`; getLatestOrders() @@ -1471,6 +1497,7 @@ foreach ($variation_details as $index => $variation) { + diff --git a/same_day_delivery.php b/same_day_delivery.php index fefb77f..4475d5f 100644 --- a/same_day_delivery.php +++ b/same_day_delivery.php @@ -901,7 +901,7 @@ if ($_SESSION["userId"] <> "") { '; + echo ''; } else { echo ''; } diff --git a/shop-list-left-sidebar2.php b/shop-list-left-sidebar2.php index 32e5be8..be80324 100644 --- a/shop-list-left-sidebar2.php +++ b/shop-list-left-sidebar2.php @@ -846,7 +846,7 @@ if ($_SESSION["userId"] <> "") { '; + echo ''; } else { echo ''; } diff --git a/wishlist.php b/wishlist.php index 5aca70d..b3005f0 100644 --- a/wishlist.php +++ b/wishlist.php @@ -768,10 +768,10 @@ if ($_SESSION["userId"] <> "") { - + '; + echo ''; } else { echo ''; }