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} -
`; 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 8f2e282..28a9656 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 @@