From a02f0667ffb755a54246f05a7539798e9e658a12 Mon Sep 17 00:00:00 2001 From: RryAn05 Date: Tue, 20 Feb 2024 15:01:07 +0800 Subject: [PATCH] Cart --- admin/config.php | 2 +- assets/js/tester5.js | 2 +- contact-seller-action.php | 10 +++++----- contact-us-action.php | 2 +- contact-us.php | 2 +- header.php | 4 ++-- index.php | 2 +- product-left-sidebar.php | 21 ++++++++++++++++++--- 8 files changed, 30 insertions(+), 15 deletions(-) diff --git a/admin/config.php b/admin/config.php index 33d99e6..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/tester5.js b/assets/js/tester5.js index 1fb1fdb..c6de1b5 100644 --- a/assets/js/tester5.js +++ b/assets/js/tester5.js @@ -612,7 +612,7 @@ function popupAddToCart(product, productVendor, token, email, password, customer Subtotal: ${totalAmount} -
+
-
+
diff --git a/contact-seller-action.php b/contact-seller-action.php index 4f6d12a..7b478db 100644 --- a/contact-seller-action.php +++ b/contact-seller-action.php @@ -20,12 +20,12 @@ include "functions.php"; var_dump($array); // header("location: product-left-sidebar.php?id=$id"); -# 02-15-2024 Stacy added message sent +# 02-20-2024 Stacy added message sent // $result = customerExists($_SESSION["email"]); -// if ($response) { -// $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; -// header("location: contact-us.php"); -// } +if ($response) { + $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; + header("location: product-left-sidebar.php?id=$id"); +} #02-19-2024 Stacy added email to be sent to customer diff --git a/contact-us-action.php b/contact-us-action.php index 31c4e50..616fad6 100644 --- a/contact-us-action.php +++ b/contact-us-action.php @@ -22,7 +22,7 @@ include "functions.php"; # 02-15-2024 Stacy added message sent // $result = customerExists($_SESSION["email"]); if ($response) { - $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; + $_SESSION["SuccessfullySent"] = "Message Sent Successfully"; header("location: contact-us.php"); } 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/header.php b/header.php index afc8a2a..198b535 100644 --- a/header.php +++ b/header.php @@ -387,13 +387,13 @@ Subtotal:
-
+
-
+
- +
diff --git a/index.php b/index.php index eb6266e..69ff38f 100644 --- a/index.php +++ b/index.php @@ -2060,7 +2060,7 @@ if ($_SESSION["userId"] <> "") { '; + echo ''; } else { echo ''; } diff --git a/product-left-sidebar.php b/product-left-sidebar.php index 8683873..37db111 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:
- +
@@ -549,7 +564,6 @@ foreach ($variation_details as $index => $variation) {
-
@@ -805,7 +819,7 @@ foreach ($variation_details as $index => $variation) { Subtotal: ${totalAmount} -
+
-
+
@@ -1483,6 +1497,7 @@ foreach ($variation_details as $index => $variation) { +