📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
b2be-ticaretscripti.demodesign.com.tr
/
new
📝
hizlisiparis.php
← Geri Dön
<title>Hızlı Sipariş</title> <meta name="keywords" content="<?php echo $ayar['sitekey']; ?>"> <meta name="description" content="<?php echo $ayar['sitedesc']; ?>"> <meta property="og:url" content="<?php echo $url; ?>"/> <meta property="og:title" content="Üyelik Sözleşmesi ve Rıza Metni"/> <meta property="og:description" content="<?php echo $ayar['sitedesc']; ?>"/> <?php $bayino = $uyeid; if (isset($_POST['sepetidm'])) { $id = $_POST['sepetidm']; $sayfasil = $ozy->prepare("delete from sepet where id='$id'"); $sayfasil->execute(array($id)); if ($sayfasil) { echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Başarıyla veri silindi.", "Başarılı");});</script>'; } } $bayiid = $uyebilgileri['bayigrup']; $oranbayix = $ozy->query("select * from bayigrup where id='$bayiid'")->fetch(PDO::FETCH_ASSOC); if (isset($_GET['carisilx'])) { $bayimiddd = temizle($_GET['bayino']); $sonuccc = $ozy->exec("UPDATE sepet SET caritutar='0.00',caritarih='' WHERE gelenkim='$sepetimdekikim'"); echo '<meta http-equiv="refresh" content="0; url='.$url.'/boss/hizlisiparis?bayino='.$bayimiddd.'&odemegec">'; $caritutar = temizle($_POST['caritutar']); } if(isset($_POST['kuponguncellex'])){ $kuponadi = temizle($_POST['kuponadi']); $sekli = "0"; $kuponkontrol = $ozy->prepare("SELECT * FROM kuponlar WHERE durum='1' and adi=? and sekil=?"); $kuponkontrol->execute(array($kuponadi,$sekli)); if ($kuponkontrol->rowCount()) { $rows = $kuponkontrol ->fetch(PDO::FETCH_ASSOC); if($rows['stok']<='0'){ echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Malesef kupon limiti dolmuştur.", "Başarısız");});</script>'; } else { if($sepetbedeli>=$rows['slimit']){ $yeni = $rows['oran']; $kid = $rows['id']; $sekil = $rows['tip']; if($sekil=='1'){ $ksyeni = $sepetbedeli*$yeni; $syeni = $ksyeni/100; $sonuccc = $ozy->exec("UPDATE sepet SET cekid='0',cektutar='0.00',kupontutar='$syeni',kuponid='$kid' WHERE gelenkim='$sepetimdekikim' order by id asc limit 1"); echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Kupon başarıyla uygulandı.", "Başarılı");});</script>'; echo '<meta http-equiv="refresh" content="0; url='.$url.'/boss/hizlisiparis?bayino='.$uyeid.'&odemegec">'; } else { $sonuccc = $ozy->exec("UPDATE sepet SET cekid='0',cektutar='0.00',kupontutar='$yeni',kuponid='$kid' WHERE gelenkim='$sepetimdekikim' order by id asc limit 1"); echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Kupon başarıyla uygulandı.", "Başarılı");});</script>'; echo '<meta http-equiv="refresh" content="0; url='.$url.'/boss/hizlisiparis?bayino='.$uyeid.'&odemegec">'; } } else { echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Kuponu kullanabilmek için sepet tutarınız en az '.$rows['slimit'].' TL olmalıdır.", "Başarısız");});</script>'; } } } else { echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Kupon Kodu Geçersiz veya Süresi Bitmiş.", "Başarısız");});</script>'; } } if(isset($_POST['cekguncellex'])){ $kuponadi = temizle($_POST['kuponadi']); $sekli = "1"; $uyeepostamiz = $uyebilgileri['email']; $uyeepostamiz2 = "".$kuponadi."-".$uyebilgileri['email'].""; $ceksorgu = $ozy->prepare("SELECT COUNT(*) FROM kuponlar where durum='1' and sekil='1' and epostalar like '%$uyeepostamiz%' and gtarih>='$buguntarihim' and kullanildi not like '%$uyeepostamiz2%' order by id DESC"); $ceksorgu->execute(); $ceksay = $ceksorgu->fetchColumn(); if($ceksay=='1'){ echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Malesef bu hediye çekini daha önce kullanmışsınız.", "Başarısız");});</script>'; } else { $kuponkontrol = $ozy->prepare("SELECT * FROM kuponlar WHERE durum='1' and adi=? and sekil=? and epostalar like '%$uyeepostamiz%'"); $kuponkontrol->execute(array($kuponadi,$sekli)); if ($kuponkontrol->rowCount()) { $rows = $kuponkontrol ->fetch(PDO::FETCH_ASSOC); if($rows['stok']<='0'){ echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Malesef bu hediye çeki limiti dolmuştur.", "Başarısız");});</script>'; } else { if($sepetbedeli>=$rows['slimit']){ $yeni = $rows['oran']; $kid = $rows['id']; $sekil = $rows['tip']; if($sekil=='1'){ $ksyeni = $sepetbedeli*$yeni; $syeni = $ksyeni/100; $sonuccc = $ozy->exec("UPDATE sepet SET kuponid='0',kupontutar='0.00',cektutar='$syeni',cekid='$kid' WHERE gelenkim='$sepetimdekikim' order by id asc limit 1"); echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Hediye çeki başarıyla uygulandı.", "Başarılı");});</script>'; echo '<meta http-equiv="refresh" content="0; url='.$url.'/boss/hizlisiparis?bayino='.$uyeid.'&odemegec">'; } else { $sonuccc = $ozy->exec("UPDATE sepet SET kuponid='0',kupontutar='0.00',cektutar='$yeni',cekid='$kid' WHERE gelenkim='$sepetimdekikim' order by id asc limit 1"); echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Hediye çeki başarıyla uygulandı.", "Başarılı");});</script>'; echo '<meta http-equiv="refresh" content="0; url='.$url.'/boss/hizlisiparis?bayino='.$uyeid.'&odemegec">'; } } else { echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Kuponu kullanabilmek için sepet tutarınız en az '.$rows['slimit'].' TL olmalıdır.", "Başarısız");});</script>'; } } } else { echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Hediye Çeki Kodu Geçersiz veya Süresi Bitmiş.", "Başarısız");});</script>'; } } } if(isset($_POST['cariguncellex'])){ $caritutar = temizle($_POST['caritutar']); $caritarihx = temizle($_POST['caritarih']); $caritarih = date("d-m-Y",strtotime($caritarihx)); $bayilik = 1; $uye = temizle($_POST['bayino']); if($toplamtutarim>=$caritutar){ $sonucccx = $ozy->exec("UPDATE sepet SET caritutar='$caritutar',caritarih='$caritarih' WHERE gelenkim='$sepetimdekikim' order by id asc limit 1"); echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Cari indirim başarıyla uygulandı.", "Başarılı");});</script>'; echo '<meta http-equiv="refresh" content="0; url='.$url.'/boss/hizlisiparis?bayino='.$uye.'&odemegec">'; } else { echo '<script type="text/javascript">$(document).ready(function(){toastr["error"]("Sepet tutarından fazla değer giremezsiniz. Max Tutar : '.$toplamtutarim.' TL olmalıdır.", "Başarısız");});</script>'; } } ?> <div class="wrapper" style="margin-top: 10px;"> <div class="container-fluid"> <!-- Page-Title --> <ul class="breadcrumb"> <li><a href="<?php echo $url;?>"><i class="fa fa-home"></i></a></li> <li><a>Sipariş Oluştur</a></li> </ul> <h1 class="title page-title"><span><?php echo $uyebilgileri['isim'];?> - (%<?php echo $oranbayix['oran'];?> İndirim)</span></h1> <div class="site-wrapper"> <div class="container" style="max-width: 100% !important; padding: 0px !important; margin: 0px !important;"> <div class="row" style="max-width: 100% !important; padding: 0px !important; margin: 0px !important;"> <div id="content" style="width: 100%;"> <div class="main-products-wrapper"> <?php if(isset($_POST['odemegec']) or isset($_GET['odemegec']) or isset($_POST['cariguncellex']) or isset($_POST['kuponguncelle']) or isset($_POST['cekguncelle'])) { ?> <?php } else { ?> <div class="row align-items-center" style="max-width: 100% !important; padding: 10px !important; margin: 0px !important;"> <div class="col-lg-6" style=""> <!-- Ürünler --> <input type="text" id="urun_arama" class="form-control" placeholder="Ürün ara"> <div id="urunler_listesi"> <!-- AJAX ile ürünler buraya eklenecek --> </div> </div> <div class="col-lg-6" style="margin-top:20px;"> <!-- Sepet --> <h6 style="text-align: center; font-weight: 600;" class="title page-title">Sepet Ürünlerimiz</h6> <div id="sepet"> <table class="table table-cart table-mobile"> <thead> </thead> <tbody> <?php $sepetimdekikimm = $_GET['bayino']; $sepetebak = $ozy->prepare("SELECT * FROM sepet WHERE gelenkim=?"); $sepetebak->execute(array($sepetimdekikimm)); if ($sepetebak->rowCount()) { $uyesepeti = $ozy->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.id = sepet.urunid WHERE sepet.gelenkim=? ORDER BY sepet.id DESC"); $uyesepeti->execute(array($sepetimdekikimm)); foreach ($uyesepeti as $sepet) {?> <form method="POST" action=""> <input type="hidden" name="sepetidm" value="<?php echo $sepet['id'];?>"> <div class="urun" style="background: #e9ecef; border-radius: 6px; margin-bottom: 20px; padding: 10px;"> <a target="_blank" href="../urun/<?php echo $sepet['seo'];?>"> <div style="width: 75%;"><?php echo $sepet['adi'];?> <b style="font-weight:bold;"> </br><?php echo $sepet['adet'];?> Adet - <?php echo fiyatgoster($sepet['fiyat']*$sepet['adet']);?></b></div> </a> <?php if($sepet['kargo']=='1'){?> <span class="badge1" style="background: #767373; color: white; border-radius: 5px; padding: 5px; margin-top: 4px; display: block; width: 30%;"> <i class="fa fa-truck"></i> ÜCRETSİZ KARGO </span> <?php } ?> <?php if($sepet['alodedurum']=='1'){?> <span class="badge2" style="background: #a39900; color: white; border-radius: 5px; padding: 5px; margin-top: 4px; display: block; width: 30%;"> <i class="fa fa-gift"></i> <?php echo $sepet['alodemetin'];?></span> <?php } ?> <div> <div class="cart-product-quantity-changer" style="display: flex; float: right; margin-top: -6%; margin-right: 12%;"> <a id="AdetArttir<?php echo $sepet['id'];?>"> <div class="cart-product-quantity-changer-increaser" style="text-align: center; background: #6c6c6c; color: white; border-radius: 2px;"> <i class="fa fa-plus" style="width: 50px; height: 40px; line-height: 40px;" ></i></div></a> <div class="cart-product-quantity-changer-quantity"> <?php if($sepet['alodedurum']=='1'){?> <?php $newstok = $sepet['adet']+$sepet['alodeadet'];?> <?php } else { ?> <?php $newstok = $sepet['adet'];?> <?php } ?> <?php if($system['sinirsizstok']!='1'){ ?> <input style="text-align: center;height: 41px; width: 80px;" class="submit_on_enter" type="text" data-type="number" pattern="[0-9]*" id="NormalAdeti<?php echo $sepet['id'];?>" onchange="this.form.submit()" name="adet" value="<?php echo $newstok;?>" min="1" max="<?php echo $sepet['stok'];?>" size="2"> <?php } else { ?> <input style="text-align: center;height: 41px; width: 80px;" class="submit_on_enter" type="text" data-type="number" pattern="[0-9]*" id="NormalAdeti<?php echo $sepet['id'];?>" onchange="this.form.submit()" name="adet" value="<?php echo $newstok;?>" min="1" max="9999999999999999999"> <?php } ?> </div> <a id="AdetAzalt<?php echo $sepet['id'];?>"> <div class="cart-product-quantity-changer-decreaser" style="text-align: center; background: #6c6c6c; color: white; border-radius: 2px;"> <i class="fa fa-minus" style="width: 50px; height: 40px; line-height: 40px;"> </i></div> </a> </div> </div> <button style="border: none; float: right; margin-right: -44%; margin-top: -6%; background: #fffbfb; width: 66px; border-radius: 5px; height: 40px;" data-id="<?php echo $sepet['id']; ?>" name="sepetsil" type="submit"> <i class="fa fa-trash"></i></button> </div> </form> <?php }} ?> </tbody> </table><!-- End .table table-wishlist --> <script src="../<?php echo $sitetemasi;?>/user/jquery.min.js"></script> <script src="../<?php echo $sitetemasi;?>/user/bootstrap-input-spinner.js"></script> <?php $sepetimdekikimm = $_GET['bayino']; $sepetebak = $ozy->prepare("SELECT * FROM sepet WHERE gelenkim=?"); $sepetebak->execute(array($sepetimdekikimm)); if ($sepetebak->rowCount()) { $uyesepeti = $ozy->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.id = sepet.urunid WHERE sepet.gelenkim=? ORDER BY sepet.id DESC"); $uyesepeti->execute(array($sepetimdekikimm)); foreach ($uyesepeti as $sepet) {?> <script type="text/javascript"> $(document).ready(function() { var urunId<?php echo $sepet['id'];?> = <?php echo $sepet['id'];?>; var bayino = "<?php echo $_GET['bayino']; ?>"; $("#AdetArttir<?php echo $sepet['id'];?>").on("click", function () { var adet = parseInt($("#NormalAdeti<?php echo $sepet['id'];?>").val()); if (adet < 8) { adet++; $("#NormalAdeti<?php echo $sepet['id'];?>").val(adet); updateAdet(urunId<?php echo $sepet['id'];?>, adet); // Veritabanında adet güncelleme fonksiyonunu çağırın } }); $("#AdetAzalt<?php echo $sepet['id'];?>").on("click", function () { var adet = parseInt($("#NormalAdeti<?php echo $sepet['id'];?>").val()); if (adet > 0) { adet--; $("#NormalAdeti<?php echo $sepet['id'];?>").val(adet); updateAdet(urunId<?php echo $sepet['id'];?>, adet); // Veritabanında adet güncelleme fonksiyonunu çağırın } }); $("#NormalAdeti<?php echo $sepet['id'];?>").keypress(function (e) { var regex = new RegExp("^[0-9]"); var str = String.fromCharCode(!e.charCode ? e.which : e.charCode); if (regex.test(str)) { return true; } e.preventDefault(); return false; }); function updateAdet(urunId, adet) { $.ajax({ type: "POST", url: "sepeti_guncelle.php", // Veritabanı sorgusunun çalıştırılacağı PHP dosyasının yolunu belirtin data: { urunId: urunId, adet: adet }, success: function (response) { // Başarılı bir şekilde güncellendiğinde yapılacak işlemler // Adet sayısını anlık olarak güncellemek için ilgili ürünün div'ini bulun ve içindeki "Adet" metnini güncelleyin location.reload(); }, error: function () { // Hata durumunda yapılacak işlemler console.log("Adet güncellenirken hata oluştu"); } }); } $('[name="sepetsil"]').click(function() { var sepetId = $(this).data('id'); $.ajax({ type: 'POST', url: 'sepet_sil.php', data: { sepetId: sepetId }, success: function(response) { // Başarılı işlem durumunda yapılabilecek işlemler toastr.success('Başarıyla veri silindi.', 'Başarılı'); }, error: function(xhr, status, error) { // Hata durumunda yapılacak işlemler console.error(error); } }); }); }); </script> <?php }} ?> </div> </div> </div> <?php } ?> <?php if(isset($_POST['odemegec']) or isset($_GET['odemegec']) or isset($_POST['cariguncellex']) or isset($_POST['kuponguncelle']) or isset($_POST['cekguncelle'])) { ?> <?php } else { ?> <form action="" method="POST"> <button name="odemegec" type="submit" style="background: #513ba0; display: block !important; width: 100%; margin-bottom: 20px; color: white; padding: 20px; font-weight: 600;" class="btn"> <span class="me-3">ÖDEME ADINA GEÇ</span><span> </button> </form> <?php } ?> <?php if(isset($_POST['odemegec']) or isset($_GET['odemegec']) or isset($_POST['cariguncellex']) or isset($_POST['kuponguncelle']) or isset($_POST['cekguncelle'])) { ?> <div class="row"> <div class="col-lg-12" style="background: white;border: 1px solid #ebe7e7;padding: 30px;"> <button style="width: 100%; border: none; padding: 15px; font-weight: 600; background: #bdbaba; margin-bottom: 4px;" id="modal-btn">CARİ HESAP</button> <button style="width: 100%; border: none; padding: 15px; font-weight: 600; background: #f08f8f; margin-bottom: 4px;" id="modal-btn1">İNDİRİM KUPONU & HEDİYE ÇEKİ</button> <div id="modal-container"> <div id="modal-content"> <span class="close">×</span> <p> <h6>Cari Hesap</h6> Toplam Sepet Tutarı : <b><?php echo $ctoplamtutari;?></b> </br> Sonra Ödenecek Tutar : <b><?php echo $caritutari;?></b> </br> Ödeme Tarihi : <b><?php echo $caritarih['caritarih'];?></b> </br> Şimdi Ödenecek Sipariş Tutarı : <b><?php echo $toplamtutari;?></b> </br> </br> </br> <form method="POST" action="" style="border: 2px solid #f5f5f5; padding: 10px; border-radius: 4px;"> <div class="form-group" style=" width: 100%;"> <label><b>Siparişinizin bir kısmını cari hesabınızla sonra ödeyebilirsiniz.</b></label> <input type="hidden" name="bayino" value="<?php echo $uyeid;?>"> <input style="margin-right: 2%;margin-bottom:5px;" type="text" class="form-control" name="caritutar" placeholder="Sonra ödemek istediğiniz tutarı giriniz. Sadece TL bazında düşüm sağlanır. Bu tutar sepetten düşecektir." required> <button style="padding:5px;border:none;margin-bottom:10px;color:white;background:black;font-weight:bold;" id="aktarBtn">TÜM BAKİYEYİ AKTAR</button> <input style="margin-right: 2%;margin-bottom:5px;" type="date" class="form-control" name="caritarih" placeholder="Ödeme yapacağınız tarihi giriniz" required> <span class="input-group-append"> <button class="btn btn-primary" style="padding: 15px;width: 100%;background:#000; !important;color:white;margin: 0px;" type="submit" name="cariguncellex">Cari Ödeme Uygula</button> </span> </div> </form></p> <script> $(document).ready(function() { $("#aktarBtn").click(function() { var ctoplamtutari = "<?php echo $ctoplamtutari; ?>"; ctoplamtutari = ctoplamtutari.replace("TL", ""); // "TL" ifadesini kaldırma $("input[name='caritutar']").val(ctoplamtutari); }); }); </script> </div> </div> <div id="modal-container1"> <div id="modal-content1"> <span class="close1">×</span> <p> <h6>İNDİRİM KUPONU & HEDİYE ÇEKİ</h6> <form method="POST" action="" style="border: 2px solid #f5f5f5; padding: 10px; border-radius: 4px;"> <div class="form-group"> <input type="text" class="form-control" name="kuponadi" placeholder="İndirim Kuponu Kodunuz"> <button class="btn btn-primary" style="margin-top: 2%; width: 100%;background:<?php echo $tema['t16'];?> !important;padding: 15px;border:none;" type="submit" name="kuponguncellex">Kuponu Uygula</button> </div> </form> <form method="POST" action="" style="border: 2px solid #f5f5f5; padding: 10px; border-radius: 4px;"> <div class="form-group"> <select name="kuponadi" class="form-control" style="background: #f9f9f9;margin-bottom: 10px;font-weight: 400;" onchange='this.form.submit()'> <option value="0">Aktif Hediye Çeklerim</option> <?php $uyeepostamiz = temizle($uyebilgileri['email']); $cekoku = $ozy->query("select * from kuponlar where durum='1' and sekil='1' and epostalar like '%$uyeepostamiz%' and gtarih>='$buguntarihim' and kullanildi not like '%$uyeepostamiz%' order by id DESC")->fetchAll(PDO::FETCH_ASSOC); foreach ($cekoku as $hediyecek) {?> <option value="<?php echo $hediyecek['adi']?>"><?php echo $hediyecek['adi']?></option> <?php } ?> </select> <input type="hidden" name="cekguncellex"> </div><!-- End .cart-discount --> </form> </div> </div> <style> #modal-container { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); } #modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 94%; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } #modal-container1 { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); } #modal-content1 { background-color: #fefefe; margin: 20% auto; padding: 20px; border: 1px solid #888; width: 94%; } .close1 { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; } .close1:hover, .close1:focus { color: black; text-decoration: none; cursor: pointer; } .custom-radio .custom-control-label::before { border-radius: 50%; display: none !important; } </style> <script> var modalBtn = document.getElementById("modal-btn"); var modalContainer = document.getElementById("modal-container"); var closeBtn = document.getElementsByClassName("close")[0]; modalBtn.addEventListener("click", function() { modalContainer.style.display = "block"; }); closeBtn.addEventListener("click", function() { modalContainer.style.display = "none"; }); </script> <script> var modalBtn1 = document.getElementById("modal-btn1"); var modalContainer1 = document.getElementById("modal-container1"); var closeBtn1 = document.getElementsByClassName("close1")[0]; modalBtn1.addEventListener("click", function() { modalContainer1.style.display = "block"; }); closeBtn1.addEventListener("click", function() { modalContainer1.style.display = "none"; }); </script> </div> <div class="col-lg-12" style="border: 1px solid #ebe7e7;padding: 30px;"> <!-- Sepet --> <div> <h1 class="title page-title">Ara Tutar : <span><?php echo $aratutari;?></span></h1> </div> <div> <h1 class="title page-title">KDV : <span><?php echo $kdvtutari;?></span></h1> </div> <div> <h1 class="title page-title">Kargo Bedeli : <span><?php echo $kargometni;?></span></h1> </div> <?php if($kuponindirim!='0'){?> <div><a style="float: right;padding:2px;font-size: 12px;background: #dd1616a8;color: white;" href="<?php echo $url;?>/boss/hizlisiparis/hizlisiparis?bayino=<?php echo $bayino;?>&kuponsil">Sil</a> <h1 class="title page-title">İndirim Bedeli : <span>- <?php echo sfiyatgoster($kuponindirim)?></span></h1> </div> <?php } ?> <?php if($cekindirim!='0'){?> <div><a style="float: right;padding:2px;font-size: 12px;background: #dd1616a8;color: white;" href="<?php echo $url;?>/boss/hizlisiparis/hizlisiparis?bayino=<?php echo $bayino;?>&ceksil">Sil</a> <h1 class="title page-title">Çek İndirimi : <span>- <?php echo sfiyatgoster($cekindirim)?></span></h1> </div> <?php } ?> <div id="kapidaodemediv" style="display:none;"> <h1 class="title page-title">Kapıda Ödeme : <span><?php echo sfiyatgoster($system['kapitutar']);?></span></h1> </div> <div id="havaleodemediv" style="display:none;"> <h1 class="title page-title">Havale/EFT İndirimi : <span><?php echo sfiyatgoster($havaleindirimbedeli)?></span></h1> </div> <?php if($caritutar!='0'){?> <div> <a style="float: right; display: block; padding: 10px; background: red; color: white; font-weight: bold;" href="<?php echo $url;?>/boss/hizlisiparis?bayino=<?php echo $uyeid;?>&carisilx&odemegec">sil</a> <h1 class="title page-title">CARİ TUTAR : <span>- <?php echo $caritutari;?></span></h1> </div> <?php } ?> <h1 style="text-align: center; background: #030333; color: white; margin-top: 10px !important;" class="title page-title">Ödeme Yöntemleri</h6><!-- End .checkout-title --> <form action="odeme?bayino=<?php echo $bayino;?>" method="POST"/> <style> .custom-control-label { display: flex; flex-direction: column; align-items: center; text-align: center; } .custom-control-inline { display: block !important; width: 100% !important; margin-right:0px !important; } </style> <table cellspacing="0" cellpadding="0" style="border-width: 0px !important;"> <tbody> <table class="tablommm" style="text-align: center; display: block; margin-left: 40% !important;"> <tr> <?php if($system['havaleok']=='1'){ ?> <td> <label class="custom-control custom-radio custom-control-inline"> <input style="display: block !important;width: 55px; height: 55px;" onclick="kapidaodemeekle(2)" type="radio" name="odemetipi" value="Havale/EFT" required class="new-radio"> <div class="custom-control-label"><b class="yontemyazi">Havale/EFT</b></div> </label> </td> <?php } ?> <?php if($system['kartok']=='1'){ ?> <td> <label class="custom-control custom-radio custom-control-inline"> <input style="display: block !important;width: 55px; height: 55px;" onclick="kapidaodemeekle(0)" type="radio" name="odemetipi" value="Kredi Kartı" required class="new-radio"> <div class="custom-control-label"><b class="yontemyazi">Kredi Kartı</b></div> </label> </td> <?php } ?> <?php if($system['kapidaok']=='1'){ ?> <td> <label class="custom-control custom-radio custom-control-inline"> <input style="display: block !important;width: 55px; height: 55px;" onclick="kapidaodemeekle(1)" type="radio" name="odemetipi" value="Kapıda Ödeme" required class="new-radio"> <div class="custom-control-label"><b class="yontemyazi">Kapıda Ödeme</b> </b></div> </label> </td> <?php } ?> </tr> </table> <tr> <td colspan="2"> <div> <h1 class="title page-title" style="margin-top: 10px !important; text-align: center; padding: 20px; background: #a7f2b0; font-weight: bold; margin-bottom: -15px !important;"> TOPLAM ÖDENECEK TUTAR : <span> <td id="toplam-price-val" data-price="<?php echo $toplamtutarim;?>" class="cart-summary-total-price"><?php echo $toplamtutari;?></td> </span></h1> </div> </td> </tr> </tbody> </table> </div> </div> <div class="col-sm-12 mobilodemekismi"> <div class="md-form md-outline"> <label for="form15" class="active">Notunuz </label> <textarea name="mesaj" style="min-height:200px;" class="form-control" cols="30" rows="4" placeholder="Bırakmak istediğiniz not ."></textarea> </div> </div> <div class="col-lg-12" style="max-height: 500px; overflow-y: auto;border: 1px solid #ebe7e7;padding: 0px;background: white;display:none !important;"> <!-- Ürünler --> <h6>Sipariş Detayları</h6> <input value="<?php echo $uyebilgileri['isim'];?>" name="adsoyad" type="hidden"> <input value="<?php echo $uyebilgileri['telefon'];?>" name="telefon" type="hidden"> <input value="<?php echo $uyebilgileri['email'];?>" name="email" type="hidden"> <input value="<?php echo $uyebilgileri['adres'];?>" name="adres" type="hidden"> <input value="<?php echo $uyebilgileri['il'];?>" name="il" type="hidden"> <input value="<?php echo $uyebilgileri['ilce'];?>" name="ilce" type="hidden"> <input value="<?php echo $uyebilgileri['il'];?>" name="il" type="hidden"> <div class="col-sm-12"> <div class="md-form md-outline" style="z-index: 99999999999; position: relative;width: 48%;float: left;"> <label for="form15" class="active">Fatura Bilgisi</label> <div class="kutu"> <input checked value="0" name="uyetip" type="radio" class="new-radio" id="register-check-20" required> Bireysel </div> </div> <div class="md-form md-outline" style="z-index: 99999999999; position: relative;width: 48%;float: left;margin-left: 4%;"> <label for="form15" class="active">Fatura Bilgisi</label> <div class="kutu"> <input value="1" name="uyetip" type="radio" class="new-radio" id="register-check-20" required> Kurumsal </div> </div> </div> <style>@media screen and (max-device-width: 480px) and (orientation: portrait){.mobilodemekismi {}} .mobilodemekismi {margin-top:0px;}</style> <div class="col-lg-12 mobilodemekismi"> <div class="col-sm-12" id="bireysel"> <div class="md-form md-outline"> <label for="form15" class="active">TC. Numaranız</label> <input value="<?php echo $uyebilgileri['tc'];?>" name="tc" type="text" class="form-control" size="11" maxlength="11"> </div> </div> <div class="col-sm-12" id="kurumsal" style="display:none;"> <div class="md-form md-outline"> <label for="form15" class="active">Firma Adı</label> <input value="<?php echo $uyebilgileri['vergi1'];?>" name="vergi1" type="text" class="form-control"> </div> </div> <div class="col-sm-12" id="kurumsal2" style="display:none;"> <div class="md-form md-outline"> <label for="form15" class="active">Vergi Dairesi Adı</label> <input value="<?php echo $uyebilgileri['vergi2'];?>" name="vergi2" type="text" class="form-control"> </div> </div> </div> <div class="col-sm-12" id="kurumsal3" style="display:none;"> <div class="md-form md-outline"> <label for="form15" class="active">Vergi No</label> <input value="<?php echo $uyebilgileri['vergi3'];?>" name="vergi3" type="text" class="form-control"> </div> </div> <div class="col-sm-12"> <div class="md-form md-outline" style="z-index: 99999999999; position: relative;width: 48%;float: left;"> <label for="form15" class="active">Fatura Adres Bilgisi</label> <div class="kutu"> <input checked value="0" name="faturatip" type="radio" class="new-radio" id="register-check-202" required> Fatura Adresim Sipariş Adresimle Aynı </div> </div> <div class="md-form md-outline" style="z-index: 99999999999; position: relative;width: 48%;float: left;margin-left: 4%;"> <label for="form15" class="active">Fatura Adres Bilgisi</label> <div class="kutu"> <input value="1" name="faturatip" type="radio" class="new-radio" id="register-check-202" required> Yeni Fatura Adresi Oluştur </div> </div> </div> <div class="col-sm-12 mobilodemekismi" id="faturaadres" style="display:none;"> <div class="md-form md-outline"> <label for="form15" class="active">Fatura Adresiniz</label> <textarea name="faturaadres" style="min-height:200px;" class="form-control" cols="30" rows="4" placeholder=""></textarea> </div> </div> <div class="col-sm-12" id="faturail" style="display:none;"> <div class="md-form md-outline" style="width: 48%;float: left;"> <label for="form15" class="active">Fatura İli</label> <select name="faturail" id="sehir" class="form-control"> <?php foreach($sehir as $key => $val){?> <option value="<?=$val;?>"><?=$val;?></option> <?php }?> </select> </div> <div class="md-form md-outline" style="width: 48%;float: left;margin-left: 4%;display:none;" id="faturailce"> <label for="form15" class="active">Fatura İlçesi</label> <input name="faturailce" type="text" class="form-control"> </div> </div> <input type="hidden" name="onay" value="1"> </div> </div> <div class="row"> <button type="submit" style="background: #fa0b64; color: white; font-size: 22px; display: block !important; width: 100%; padding: 20px; margin: auto;" class="btn"> <span class="me-3">ALIŞVERİŞİ TAMAMLA</span><span> <i class="fa fa-shopping-bag"> </i></span> </button> <a style="background: #3b3739; color: white; font-size: 22px; display: block !important; width: 100%; padding: 20px; margin: auto; margin-top: auto; text-align: center; margin-top: 2px; }" href="<?php echo $url;?>/boss/hizlisiparis?bayino=<?php echo $bayino;?>">SEPETE DÖN</a> </div> </form> <?php }?> </div> </div> </div> </div> </div> </div> </div> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <script> $(document).ready(function() { $("#urun_arama").keyup(function() { var arananKelime = $(this).val().toLowerCase(); if (arananKelime === '') { $("#urunler_listesi").html(''); } else { $.ajax({ url: "urunler_api.php", type: "POST", data: { arama: arananKelime }, success: function(sonuc) { $("#urunler_listesi").html(sonuc); } }); } }); // Sepete ekle $(document).on("click", ".sepete_ekle", function() { var adi = $(this).data("urun-adi"); var adet = $(this).closest(".urun").find(".adet").val(); var urunid = $(this).data("urun-id"); var bayino = "<?php echo $_GET['bayino']; ?>"; $.ajax({ url: "sepete_ekle.php", type: "POST", data: { adi: adi, adet: adet, urunid: urunid, bayino: bayino }, success: function(response) { // Sepet güncellendikten sonra sepeti göstermek için bir AJAX isteği daha yapılıyor guncelleSepetiGoster(bayino); alert(adi + " ürünü sepete eklendi 😉"); $("#urun_arama").val(''); // Arama kutusunu temizler $("#urunler_listesi").html(''); // Ürün listesini temizler } }); }); // Sepeti güncelleyip gösteren fonksiyon function guncelleSepetiGoster(bayino) { $.ajax({ url: "sepeti_goster.php", type: "GET", data: { bayino: bayino }, success: function(sepetHTML) { $("#sepet").html(sepetHTML); sepetSilDinleyicileriniEkle(bayino); } }); } // Sepet ürününü silme işlemini gerçekleştiren fonksiyon function sepetUrunuSil(sepetId, bayino) { $.ajax({ url: "sepeti_sil.php", type: "POST", data: { sepetId: sepetId }, success: function() { guncelleSepetiGoster(bayino); } }); } // Sepet ürününü silme butonuna dinleyici ekleme function sepetSilDinleyicileriniEkle(bayino) { $(".sepet_sil").off("click"); // Önceki dinleyicileri kaldırma $(".sepet_sil").on("click", function() { var sepetId = $(this).data("id"); sepetUrunuSil(sepetId, bayino); }); } }); </script> <style> .form-control { display: block; width: 100%; height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: .25rem; transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out; height: 50px !important; line-height: 50px !important; } .page-title{ display: block; text-align: center; font-size: 14px; text-align: left; background: #e9ecef; background-color: rgb(233, 236, 239); padding: 10px; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: #e9ecef; border-radius: .25rem; margin-top: -14px !important; } </style> <script type="text/javascript"> var kapifiyat = parseFloat(<?php echo $system['kapitutar'];?>); var havalefiyat = parseFloat(<?php echo $havaleindirimbedeli;?>); var odemefiyati = parseFloat(<?php echo $toplamtutarim;?>); function kapidaodemeekle(id) { if (id == 1) { var yenifiyat = kapifiyat + odemefiyati; $("#toplam-price-val").html(yenifiyat.toFixed(2).toString() + " TL"); $("#kapidaodemediv").show(); $("#havaleodemediv").hide(); } else if (id == 2){ var yenifiyat1 = odemefiyati - havalefiyat; $("#toplam-price-val").html(yenifiyat1.toFixed(2).toString() + " TL"); $("#havaleodemediv").show(); $("#kapidaodemediv").hide(); }else{ $("#toplam-price-val").html(odemefiyati.toFixed(2).toString() + " TL"); $("#havaleodemediv").hide(); $("#kapidaodemediv").hide(); } } </script>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula