]]jkjjgdjffksdkdxmnvbcbcvbvcbbbbbbbbbvcbcbvcbmnmbnwqeqwewqskfgj
במ12[cvbnvbnvcvbcvbcvbvvvccccccccccccccvbcvbcvbnmnmqewv;'
/
home
/
u729855735
/
public_html
/
visualgallery
/
Upload FileeE
HOME
<?php require('inc/header.php'); if(isset($_SESSION['coupon'])){ $hal = $_SESSION['coupon']['final']; $per = $_SESSION['coupon']['per']; } if (isset($_SESSION['cart'])) { if(count($_SESSION['cart']) == 0){ $err = "No products in your cart"; echo "<script>setTimeout(function() { location.href='index.php'; }, 3000);</script>"; } } if(!isset($_SESSION['UID'])){ $err = "Please login first before proceed!"; echo "<script>setTimeout(function() { location.href='login.php?status=checkout'; }, 3000);</script>"; } else{ $userid = $_SESSION['UID']; $gt = "SELECT * FROM user WHERE user_id='$userid'"; $rn = mysqli_query($conn,$gt); $udata = mysqli_fetch_assoc($rn); } ?> <style> #faq{ display: none; justify-content: start; align-items: center; width: 60%; gap:0.6rem; } #html,#css{ width:30px !important; height:30px !important; } .tuy{ margin-bottom:0px !important; } .order{ background:#eaaa85; padding:15px 25px; color:#FFF; } </style> <!-- breadcrumb-area start --> <div class="breadcrumb-area" style="background-image:url('assets/images/checkout.jpg') !important"> <div class="container"> <div class="row align-items-center justify-content-center"> <div class="col-12 text-center"> <h2 class="breadcrumb-title">Checkout</h2> <!-- breadcrumb-list start --> <ul class="breadcrumb-list"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item active">Checkout</li> </ul> <!-- breadcrumb-list end --> </div> </div> </div> </div> <!-- breadcrumb-area end --> <!-- checkout area start --> <div class="checkout-area pt-100px pb-100px"> <form method="POST" action="order.php"> <div class="container"> <div class="row"> <div class="col-lg-7"> <div class="billing-info-wrap"> <h3>Billing Details</h3> <div class="row"> <div class="col-lg-6 col-md-6"> <div class="billing-info mb-4"> <input type="hidden" name="fname" value="<?php echo $udata['fname']?>"/> <input type="hidden" name="uid" value="<?php echo $uid?>"/> </div> </div> <div class="col-lg-6 col-md-6"> <div class="billing-info mb-4"> <input type="hidden" name="lname" value="<?php echo $udata['lname']?>"/> </div> </div> <div class="col-lg-12"> <div class="billing-info mb-4"> <label>Company Name</label> <input type="text" name="cname" placeholder="This is optional.."/> <input type="text" name="country" value="<?php echo $udata['country']?>"> </div> </div> <div class="col-lg-12"> <div class="billing-info mb-4"> <label>Street Address</label> <input class="billing-address" placeholder="House number and street name" name="address" type="text" required/> <input placeholder="Apartment, suite, unit etc." type="text" name="apartment"/> </div> </div> <input type="hidden" name="city" value="<?php echo $udata['city']?>"/> <input type="hidden" name="state" value="<?php echo $udata['state']?>"/> <input type="hidden" name="zip" value="<?php echo $udata['zip']?>"/> <input type="hidden" name="phone" value="<?php echo $udata['phone']?>"/> <input type="hidden" name="email" value="<?php echo $udata['email']?>"/> </div> <div class="additional-info-wrap"> <h4>Additional information</h4> <div class="additional-info"> <label>Order notes</label> <textarea placeholder="Notes about your order, e.g. special notes for delivery. " name="message"></textarea> </div> </div> </div> </div> <div class="col-lg-5 mt-md-30px mt-lm-30px "> <div class="your-order-area"> <h3>Your order</h3> <?php if($hal != ''){ ?> <div class="your-order-wrap gray-bg-4"> <div class="your-order-product-info"> <div class="your-order-top"> <ul> <li>Product</li> <li>Total</li> </ul> </div> <div class="your-order-middle"> <ul> <?php $total = 0; if(isset($_SESSION['cart'])){ foreach($_SESSION['cart'] as $list){ $total = $total + $list['item_price']*$list['item_qty']; ?> <li><span class="order-middle-left"><?php echo $list['item_name']?> X <?php echo $list['item_qty']?></span> <span class="order-price">$<?php echo $list['item_price'] * $list['item_qty']?></span></li> <?php } } ?> </ul> </div> <span style="color:green;font-size:15px"><?php echo $per;?>% Discount coupon applied. <a style="color:red;display:inline !important;font-weight:500 !important;padding:0px !important;background:none !important;font-size:13px !important" href="remove_coupon.php">Remove</a></span> <div class="your-order-total"> <ul> <li class="order-total">Total</li> <li>$<?php echo $hal;?></li> </ul> </div> </div> <div class="payment-method"> <div class="payment-accordion element-mrg"> <div id="faq" class="panel-group"> <input type="radio" id="html" name="payment_type" value="stripe" checked> <label class="tuy" for="html">Stripe</label><br> <input type="hidden" name="coupon_applied" value="Coupon applied"> <input type="hidden" name="uid" value="<?php echo $userid;?>"> <input type="hidden" name="total" value="<?php echo $hal;?>"> </div> </div> </div> </div> <?php } else{?> <div class="your-order-wrap gray-bg-4"> <div class="your-order-product-info"> <div class="your-order-top"> <ul> <li>Product</li> <li>Total</li> </ul> </div> <div class="your-order-middle"> <ul> <?php $total = 0; if(isset($_SESSION['cart'])){ foreach($_SESSION['cart'] as $list){ $total = $total + $list['item_price']*$list['item_qty']; ?> <li><span class="order-middle-left"><?php echo $list['item_name']?> X <?php echo $list['item_qty']?></span> <span class="order-price">$<?php echo $list['item_price'] * $list['item_qty']?></span></li> <?php } } ?> </ul> </div> <div class="your-order-total"> <ul> <li class="order-total">Total</li> <li>$<?php echo $total;?></li> </ul> </div> </div> <div class="payment-method"> <div class="payment-accordion element-mrg"> <div id="faq" class="panel-group"> <input type="radio" id="html" name="payment_type" value="stripe" checked> <label class="tuy" for="html">Stripe</label><br> <input type="hidden" name="uid" value="<?php echo $userid;?>"> <input type="hidden" name="total" value="<?php echo $total;?>"> </div> </div> </div> </div> <?php } ?> <div class="Place-order mt-25"> <button type="submit" class="btn-hover order" name="order">Place Order</button> </div> </div> </div> </div> </div> </form> </div> <!-- checkout area end --> <script src="assets/js/swal.js"></script> <?php if(isset($success)) {?> <script> setTimeout(function () { swal("Success!","<?php echo $success;?>!","success"); }, 100); </script> <?php } ?> <?php if(isset($err)) {?> <script> setTimeout(function () { swal("Failed!","<?php echo $err;?>!","error"); }, 100); </script> <?php } ?> <?php require('inc/footer.php'); ?>