This commit is contained in:
RryAn05 2024-02-20 15:01:07 +08:00
parent 4bc084358c
commit a02f0667ff
8 changed files with 30 additions and 15 deletions

View File

@ -1,6 +1,6 @@
<?php
$_SESSION["is_test"]=true;
$_SESSION["test_email_rcpt"]="stacyjoycemapano@gmail.com";
$_SESSION["sales_email"]="";
$_SESSION["sales_email"]="stacyjoycemapano@gmail.com";
$_SESSION["data_endpoint"]="api.obanana.shop";
?>

View File

@ -612,7 +612,7 @@ function popupAddToCart(product, productVendor, token, email, password, customer
</span>
<span id="subtotal-${response._id}" class="subtotal-${response._id}">Subtotal: ${totalAmount}</span>
<!-- 02-16-2024 Stacy added style -->
<div class="qty-plus-minuses" style="display:flex; align-items:center; padding-top:10px;">
<div class="qty-plus-minuses" style="display:flex; overflow:visible; align-items:center; padding-top:10px;">
<div class="qty-btn" style="color:#ffaa00; font-size:35px; padding-right:5px; cursor: pointer;" onclick="qtyDecrement('${response._id}', '${response.items[0]._id}', true)">-</div>
<input style="width:100px; height:40px" id="qty-input-${response.items[0]._id}" class="qty-input" type="number" name="ec_qtybtn" value="${productData.quantity}" oninput="handleQtyInput(this, '${response._id}', '${response.items[0]._id}', true)"/>
<div class="qty-btn" style="color:#ffaa00; font-size:30px; padding-left:5px; cursor: pointer;" onclick="qtyIncrement('${response._id}', '${response.items[0]._id}', true)">+</div>

View File

@ -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

View File

@ -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");
}

View File

@ -170,7 +170,7 @@
echo " <script>
setTimeout(function() {
document.getElementById('alertSuccess').style.display = 'none';
}, 5000);
}, 10000);
</script>";
}
?>

View File

@ -387,13 +387,13 @@
<span class="subtotal-<?php echo $order['_id']; ?>">Subtotal: <?php echo $order['total_amount'] ?></span>
</div>
<!-- 02-16-2024 Stacy added style -->
<div class="qty-plus-minuses" style="display:flex; align-items:center; padding-top:10px;">
<div class="qty-plus-minuses" style="display:flex; overflow:visible; align-items:center; padding-top:10px;">
<div class="qty-btn" style="color:#ffaa00; font-size:35px; padding-right:5px; cursor: pointer;" onclick="qtyDecrement('<?php echo $order['_id']; ?>' , '<?php echo $order['items'][0]['_id']; ?>')">-</div>
<input style="width:100px; height:40px" id="qty-input-<?php echo $order['items'][0]['_id']; ?>" class="qty-input" type="number" name="ec_qtybtn" value="<?php echo $order['items'][0]['quantity']; ?>" oninput="handleQtyInput(this, '<?php echo $order['_id']; ?>', '<?php echo $order['items'][0]['_id']; ?>')" />
<div class="qty-btn" style="color:#ffaa00; font-size:30px; padding-left:5px; cursor: pointer;" onclick="qtyIncrement('<?php echo $order['_id']; ?>' , '<?php echo $order['items'][0]['_id']; ?>', false)">+</div>
<!-- <a class="remove">x</a> -->
<!-- <a href="#" class="removeCart" onclick="deleteOrder('<?php #echo $order['_id']; ?>')">x</a> -->
<a href="#" class="removeCart" onclick="deleteOrder('<?php echo $order['_id']; ?>')"><i class="ecicon eci-trash" style="padding-left:30px; opacity:70%"></i></a>
<a href="#" class="removeCart" onclick="deleteOrder('<?php echo $order['_id']; ?>')"><i class="ecicon eci-trash" style="opacity:70%"></i></a>
</div>
<!-- 02-16-2024 Stacy added style -->
</div>

View File

@ -2060,7 +2060,7 @@ if ($_SESSION["userId"] <> "") {
<!-- raymart added js feb 14, 2024-->
<?php
if ($_SESSION["is_test"]==true) {
echo '<script src="assets/js/tester3.js"></script>';
echo '<script src="assets/js/tester5.js"></script>';
} else {
echo '<script src="assets/js/produc3.js"></script>';
}

View File

@ -249,6 +249,21 @@ if (isset($_GET['id'])) {
<!-- Single product content Start -->
<div class="single-pro-block">
<div class="single-pro-inner">
<!-- 02-20-2024 Stacy message sent pop-up -->
<?php
if (isset($_SESSION["SuccessfullySent"])) {
echo '<div class="alert alert-success" id="alertSuccess" role="alert"; content-align:center;>';
echo $_SESSION["SuccessfullySent"];
echo '</div>';
unset($_SESSION["SuccessfullySent"]);
echo " <script>
setTimeout(function() {
document.getElementById('alertSuccess').style.display = 'none';
}, 10000);
</script>";
}
?>
<!-- 02-20-2024 Stacy message sent pop-up -->
<div class="row">
<div class="single-pro-img">
<div class="single-product-scroll">
@ -494,7 +509,7 @@ foreach ($variation_details as $index => $variation) {
<b class="mb-0">To:</b>
</div>
<div class="col-md-1">
<span><?php echo $vendor_details['user_email'] ?></span>
<span><?php echo $_SESSION["sales_email"] ?></span>
</div>
</div>
</div>
@ -549,7 +564,6 @@ foreach ($variation_details as $index => $variation) {
</div>
</div>
<div class="ec-single-wishlist">
<a class="ec-btn-group wishlist" title="Wishlist" onclick="wishlist()"><i class="fi fi-rr-heart"></i></a>
</div>
@ -805,7 +819,7 @@ foreach ($variation_details as $index => $variation) {
</span>
<span id="subtotal-${response._id}" class="subtotal-${response._id}">Subtotal: ${totalAmount}</span>
<!-- 02-16-2024 Stacy added style -->
<div class="qty-plus-minuses" style="display:flex; align-items:center; padding-top:10px;">
<div class="qty-plus-minuses" style="display:flex; overflow:visible; align-items:center; padding-top:10px;">
<div class="qty-btn" style="color:#ffaa00; font-size:35px; padding-right:5px; cursor: pointer;" onclick="qtyDecrement('${response._id}', '${response.items[0]._id}', true)">-</div>
<input style="width:100px; height:40px" id="qty-input-${response.items[0]._id}" class="qty-input" type="number" name="ec_qtybtn" value="${productData.quantity}" oninput="handleQtyInput(this, '${response._id}', '${response.items[0]._id}', true)"/>
<div class="qty-btn" style="color:#ffaa00; font-size:30px; padding-left:5px; cursor: pointer;" onclick="qtyIncrement('${response._id}', '${response.items[0]._id}', true)">+</div>
@ -1483,6 +1497,7 @@ foreach ($variation_details as $index => $variation) {
</section>
<!-- Related Product end -->
<!-- Footer Start -->
<?php include "footer.php" ?>
<!-- Footer Area End -->