📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
b2be-ticaretscripti.demodesign.com.tr
/
ninico
📝
odeme.php
← Geri Dön
<title>Alışveriş Sepetim</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']; ?>"/> <link rel="stylesheet" type="text/css" href="<?php echo $sitetemasi;?>/catalog/view/javascript/xtensions/stylesheet/less/xtensions.css" media="screen"> <?php if ($_SESSION['uyegirisdurumu'] != 'true') { ?> <meta http-equiv="refresh" content="0; url='<?php echo $url; ?>"> <?php } ?> <?php if ($uyebilgileri['bayi'] == '1') { ?> <?php if ($toplamtutarim >= $oranbayi['sepetlimit']) { ?> <?php } else { ?> <?php header("Location: " . $url . "/sepet/"); ?> <?php } ?> <?php } ?> <style> #register-check-20:checked ~ .kutu, #register-check-21:checked ~ .kutu { color: white !important; background: var(--tp-text-primary) !important; } #register-check-22:checked ~ .kutu, #register-check-23:checked ~ .kutu { color: white !important; background: var(--tp-text-primary) !important; } #odeme_1:checked ~ .custom-radio, #odeme_2:checked ~ .custom-radio, #odeme_3:checked ~ .custom-radio { color: white !important; background: var(--tp-text-primary) !important; } label { margin-block-end: 10px; } input { margin-block-end: 20px; } textarea { margin-block-end: 20px; } @media screen and (max-width: 600px) { .col-md-9 { width: 100% !important; } .col-md-3 { width: 100% !important; } } .nice-select { width: 100% !important; } </style> <main> <form action="alisverisi-tamamla/" method="POST"/> <section class="breadcrumb__area pt-60 pb-60 tp-breadcrumb__bg" data-background="<?php echo $sitetemasi; ?>/img/banner/breadcrumb-01.jpg"> <div class="container"> <div class="row align-items-center"> <div class="col-xl-7 col-lg-12 col-md-12 col-12"> <div class="tp-breadcrumb"> <div class="tp-breadcrumb__link mb-10"> <span class="breadcrumb-item-active"><a href="<?php echo $url;?>">AnaSayfa</a></span> <span>Ödeme</span> </div> <h2 class="tp-breadcrumb__title">Ödeme</h2> </div> </div> </div> </div> </section> <section class="checkout-area pt-80 pb-50 wow fadeInUp" data-wow-duration=".8s" data-wow-delay=".2s"> <div class="container"> <div class="row"> <div class="col-lg-6 col-md-12"> <div class="coupon-accordion"> <h3><span id="showlogin">Ödeme & Kargo Adresi +</span></h3> <div id="checkout-login" class="coupon-content"> <div class="coupon-info"> <div class="address-list"> <?php $adresccc = ""; $ilccc = ""; $ilceccc = ""; if ($_SESSION['uyegirisdurumu'] == 'true') { $adresbak = $ozy->prepare("SELECT COUNT(*) FROM adreslerim where uyeid='{$uyeid}'"); $adresbak->execute(); $adressay = $adresbak->fetchColumn(); if ($adressay >= '1') { ?> <?php $adresim = $ozy->query("select * from adreslerim where uyeid='{$uyeid}' order by id DESC")->fetchAll(PDO::FETCH_ASSOC); $isd = 1; foreach ($adresim as $adresoku) { if($isd == 1){ $adresccc = $adresoku['adi'] . ", " . $adresoku['adres'] . ", " . $adresoku['ilce'] . ", " . $adresoku['il']; $ilccc = $adresoku['il']; $ilceccc = $adresoku['ilce']; } ?> <label class="address-label" sort="<?= $isd ?>" data-il="<?php echo $adresoku['il']; ?>" data-ilce="<?php echo $adresoku['ilce']; ?>" data-adres="<?php echo $adresoku['adres']; ?>"> <input class="input-radio" type="radio" name="address_id" value="<?php echo $adresoku['id']; ?>" <?= ($isd == 1) ? "checked" : "" ?> /> <span class="address-string"><?php echo $adresoku['adi']; ?>, <?php echo $adresoku['adres']; ?>, <?php echo $adresoku['ilce']; ?>, <?php echo $adresoku['il']; ?></span> </label> <?php $isd++; } ?> <?php } } ?> </div> <script> $(document).ready(function() { $(".address-label").click(function() { var selectedAddress = $(this); var selectedAdres = selectedAddress.children(".address-string").text().trim(); var selectedIlce = selectedAddress.attr("data-ilce"); var selectedIl = selectedAddress.attr("data-il"); $("#uyeadresal").val(selectedAdres); $("#adresilce").val(selectedIlce); $("#adresil").val(selectedIl); }); }); </script> <p class="form-row-first" style="display: none;"> <label>Adınız Soyadınız <span class="required">*</span></label> <input type="text" value="<?php echo $uyebilgileri['isim']; ?>" name="adsoyad" /> </p> <p class="form-row-first" style="display: none;"> <label>Telefon Numaranız <span class="required">*</span></label> <input type="text" value="<?php echo $uyebilgileri['telefon']; ?>" name="telefon" /> </p> <p class="form-row-first" style="display: none;"> <label>E-Posta Adresiniz <span class="required">*</span></label> <input type="email" value="<?php echo $uyebilgileri['email']; ?>" name="email" /> </p> <p class="form-row-first"> <label>Sipariş Adresiniz <span class="required">*</span></label> <input type="text" id="uyeadresal" name="adres" value="<?= $adresccc ?>"/> </p> <p class="form-row-first"> <label>Sipariş İli <span class="required">*</span></label> <select name="il" id="adresil" required> <?php foreach ($sehir as $key => $val) { ?> <option value="<?= $val ?>" <?= ($ilccc == $val) ? "selected" : "" ?> ><?= $val ?></option> <?php } ?> </select> </p> <br><br><br> <p class="form-row-first"> <label>Sipariş İlçesi <span class="required">*</span></label> <input type="text" id="adresilce" name="ilce" value="<?= $ilceccc ?>"/> </p> </div> </div> </div> <div class="checkbox-form"> <h3>Billing Details</h3> <div class="row" style="margin-block-start: 20px;"> <div class="col-sm-12" style="margin-block-end: 20px;"> <div class="row"> <div class="col-6" style="width: 100%;"> <label for="form15" class="active">Fatura Bilgisi</label> </div> <div class="col-6" style="width: 48%; float: left;"> <div class="md-form md-outline"> <input checked value="0" name="uyetip" type="radio" id="register-check-20" required> <label class="kutu" for="register-check-20" style="width: 100%; padding: 10px; border: 1px solid #00000038; border-radius: 5px; text-align: center;"> Bireysel </label> </div> </div> <div class="col-6" style="width: 48%; float: right;"> <div class="md-form md-outline"> <input value="1" name="uyetip" type="radio" id="register-check-21" required> <label class="kutu" for="register-check-21" style="width: 100%; padding: 10px; border: 1px solid #00000038; border-radius: 5px; text-align: center;"> Kurumsal </label> </div> </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" style="margin-block-end: 20px;"> <div class="col-sm-12" id="bireysel"> <div class="md-form md-outline"> <label for="form15" class="active" style="margin-block-end: 10px;">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" style="margin-block-end: 20px;"> <div class="row"> <div class="col-6" style="width: 100%;"> <label for="form15" class="active">Fatura Adres Bilgisi</label> </div> <div class="col-6" style="width: 48%; float: left;"> <div class="md-form md-outline"> <input checked value="0" name="faturatip" type="radio" id="register-check-22" required> <label class="kutu" for="register-check-22" style="width: 100%; padding: 10px; border: 1px solid #00000038; border-radius: 5px; text-align: center;"> Fatura Adresim Sipariş Adresimle Aynı </label> </div> </div> <div class="col-6" style="width: 48%; float: right;"> <div class="md-form md-outline"> <input value="1" name="faturatip" type="radio" id="register-check-23" required> <label class="kutu" for="register-check-23" style="width: 100%; padding: 10px; border: 1px solid #00000038; border-radius: 5px; text-align: center;"> Yeni Fatura Adresi Oluştur </label> </div> </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"> <?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> <div class="col-sm-12"> <input class="yenisoz" type="checkbox" name="onay" value="1" class="new-check" id="register-policy" style="-moz-appearance: auto; appearance: auto; cursor: unset; float: unset; width: unset;" required> <button id="myBtn" style="font-weight: 500 !important;color: black;background: none;border: none;" >Mesafeli Satış Sözleşmesi ve Ön Bilgilendirme Formunu</button> okudum ve kabul ediyorum. </div> </div> <div class="different-address"> <div class="order-notes"> <div class="checkout-form-list"> <label>Notunuz </label> <textarea cols="30" rows="10" name="mesaj" placeholder="Bırakmak istediğiniz not."></textarea> </div> </div> </div> </div> </div> <div class="col-lg-6 col-md-12"> <div class="your-order mb-30 "> <h3>Ödeme Yöntemleri</h3> <div class="your-order-table table-responsive"> <table> <tbody> <?php if ($system['havaleok'] == '1') { ?> <tr> <td> <input onclick="kapidaodemeekle(2)" type="radio" name="odemetipi" value="Havale/EFT" required class="new-radio" id="odeme_1" style="display: none;"> <label class="custom-control custom-radio custom-control-inline" for="odeme_1" style="align-items: center; display: flex; margin-bottom: unset; padding: 10px; border: 1px solid #00000038; border-radius: 5px;"> <div class="custom-control-label" style="width: 100%;"> <b class="yontemyazi" style="position: unset !important;">Havale/EFT</b> </div> </label> </td> </tr> <?php } ?> <?php if ($system['kapidaok'] == '1') { ?> <tr> <td> <input onclick="kapidaodemeekle(1)" type="radio" name="odemetipi" value="Kapıda Ödeme" required class="new-radio" id="odeme_2" style="display: none;"> <label class="custom-control custom-radio custom-control-inline" for="odeme_2" style="align-items: center; display: flex; margin-bottom: unset; padding: 10px; border: 1px solid #00000038; border-radius: 5px;"> <div class="custom-control-label" style="width: 100%;"> <b class="yontemyazi" style="position: unset !important;">Kapıda Ödeme + <?php echo fiyatgoster($system['kapitutar']); ?></b> </div> </label> </td> </tr> <?php } ?> <?php if ($system['kartok'] == '1') { ?> <tr> <td> <input onclick="kapidaodemeekle(0)" type="radio" name="odemetipi" value="Kredi Kartı" required class="new-radio" id="odeme_3" style="display: none;" checked> <label class="custom-control custom-radio custom-control-inline" for="odeme_3" style="align-items: center; display: flex; margin-bottom: unset; padding: 10px; border: 1px solid #00000038; border-radius: 5px;"> <div class="custom-control-label" style="width: 100%;"> <b class="yontemyazi" style="position: unset !important;">Kredi Kartı</b> </div> </label> </td> </tr> <?php } ?> </tbody> </table> </div> <div class="your-order-table table-responsive"> <table> <tbody> <tr> <td>Ara Tutar :</td> <td class="text-right"><?php echo $aratutari; ?></td> </tr> <tr> <td>KDV :</td> <td class="text-right"><?php echo sfiyatgoster($kdvtutari); ?></td> </tr> <tr> <td>Kargo Bedeli :</td> <td class="text-right"><?php echo $kargometni; ?></td> </tr> <tr id="kapidaodemediv" style="display:none;"> <td>Kapıda Ödeme:</td> <td class="text-right"><b><?php echo sfiyatgoster($system['kapitutar']); ?></b></td> </tr> <?php if ($kuponindirim != '0') { ?> <tr> <td>İndirim Bedeli :</td> <td class="text-right" style="color: red !important;">- <?php echo sfiyatgoster($kuponindirim); ?></td> </tr> <?php } ?> <?php if ($cekindirim != '0') { ?> <tr> <td>Çek İndirimi :</td> <td class="text-right" style="color: red !important;">- <?php echo sfiyatgoster($cekindirim); ?></td> </tr> <?php } ?> <?php if ($havaleindirimbedeli != '0') { ?> <tr id="havaleodemediv" style="display:none;"> <td>Havale/EFT İndirimi :</td> <td class="text-right" style="color: red !important;">- <?php echo sfiyatgoster($havaleindirimbedeli); ?></td> </tr> <?php } ?> <?php if ($caritutar != '0') { ?> <tr> <td>Sonra Ödenecek Tutar : </td> <td class="text-right" style="color: red !important;">- <?php echo $caritutari; ?></td> </tr> <?php } ?> <tr> <td>Ödenecek Tutar :</td> <td class="text-right" style="font-weight: bold; color: #0d0d0d;" id="toplam-price-val" data-price="<?php echo $toplamtutarim; ?>" class="cart-summary-total-price"><?php echo $toplamtutari; ?></td> </tr> <?php if ($para == 'USD' or $para == 'EUR') { ?> <tr style="background: #eeebeb;"> <td style="padding: 5px;" id="toplam-price-val2"><?php echo $toplamtutari; ?> =</td> <td class="text-right" style="font-weight: bold; color: #f75b5b;padding: 5px;" class="cart-summary-total-price" id="toplam-price-val3"> <?php echo $sontoplamtutarim; ?> TL </td> </tr> <?php } ?> </tbody> </table> </div> <div class="payment-method"> <div class="order-button-payment mt-20"> <button type="submit" class="tp-btn tp-color-btn w-100 banner-animation">Alışverişi Tamamla</button> </div> </div> </div> </div> </div> </div> </section> </form> </main> <script type="text/javascript" src="catalog/view/javascript/xtensions/stylesheet/bs/js/xcustom.js"></script> <script type="text/javascript"> address_block = false; $(document).ready(function () { $("body").removeClass("modal-open"); }); $(function () { $('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="popover"]').popover(); }); $(".date").datetimepicker({ language: "tr", pickTime: false, }); $(".time").datetimepicker({ language: "tr", pickDate: false, }); $(".datetime").datetimepicker({ language: "tr", pickDate: true, pickTime: true, }); </script> <script type="text/javascript"> var kapifiyat = parseFloat(<?php echo $system["kapitutar"]; ?>); var havalefiyat = parseFloat(<?php echo $havaleindirimbedeli; ?>); var odemefiyati = parseFloat(<?php echo $toplamtutarim; ?>); var para = "<?php echo $para; ?>"; var usd_prc = <?php echo $usd_prc; ?>; var eur_prc = <?php echo $eur_prc; ?>; function formatNumber(number) { return number.toLocaleString('tr-TR', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); } $(document).ready(function() { // İlk label'a tıklama işlemi $(".address-label:first").click(); // Tıklama olayı dinleyicisi $(".address-label").click(function() { var selectedAddress = $(this); var selectedAdres = selectedAddress.children(".address-string").text().trim(); var selectedIlce = selectedAddress.attr("data-ilce"); var selectedIl = selectedAddress.attr("data-il"); $("#uyeadresal").val(selectedAdres); $("#adresilce").val(selectedIlce); $("#adresil").val(selectedIl); }); }); function convertCurrency(amount) { if (para === 'USD') { return formatNumber(amount / usd_prc) + " $"; } else if (para === 'EUR') { return formatNumber(amount / eur_prc) + " €"; } else { return formatNumber(amount) + " TL"; } } function convertCurrencyc(amount) { if (para === 'USD') { return formatNumber(amount) + " TL"; } else if (para === 'EUR') { return formatNumber(amount) + " TL"; } else { return formatNumber(amount) + " TL"; } } function kapidaodemeekle(id) { var yenifiyat, yenifiyat1; if (id === 1) { yenifiyat = kapifiyat + odemefiyati; $("#toplam-price-val").html(convertCurrency(yenifiyat)); $("#toplam-price-val2").html(convertCurrency(yenifiyat)); $("#toplam-price-val3").html(convertCurrencyc(yenifiyat)); // Convert to USD $("#kapidaodemediv").show(); $("#havaleodemediv").hide(); } else if (id === 2) { yenifiyat1 = odemefiyati - havalefiyat; $("#toplam-price-val").html(convertCurrency(yenifiyat1)); $("#toplam-price-val2").html(convertCurrency(yenifiyat1)); $("#toplam-price-val3").html(convertCurrencyc(yenifiyat1)); // Convert to EUR $("#havaleodemediv").show(); $("#kapidaodemediv").hide(); } else { $("#toplam-price-val").html(convertCurrency(odemefiyati)); $("#toplam-price-val2").html(convertCurrency(odemefiyati)); $("#toplam-price-val3").html(convertCurrencyc(odemefiyati)); // TL remains the same $("#havaleodemediv").hide(); $("#kapidaodemediv").hide(); } } </script> <div id="myModal" class="modal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="myModalLabel">Mesafeli Satış Sözleşmesi ve Ön Bilgilendirme Formu</h4> </div> <div class="modal-body"> <p><?php echo $system["sozlesme"]; ?> </p> <button type="button" class="sozlesmebuton closex" data-dismiss="modal" aria-hidden="true">Mesafeli Satış Sözleşmesi ve Ön Bilgilendirme Formundaki maddeleri dikkatlica okudum ve kabul ediyorum.</button> </div> </div> </div> </div> <style> .sozlesmebuton { width: 100%; font-size: 12px; background: #464141; opacity: 1; padding: 10px; color: #fff; font-weight: 400; border-radius: 10px; } .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 999999999999999999; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0, 0, 0); /* Fallback color */ background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */ } /* Modal Content/Box */ .modal-content { background-color: #fefefe; margin: 15% auto; /* 15% from the top and centered */ border: 1px solid #888; width: 100%; /* Could be more or less, depending on screen size */ padding: 30px; } /* The Close Button */ .closex {} .closex:hover, .closex:focus {} .custom-radio input { display: block !important; } @media screen and (max-device-width: 480px) and (orientation: portrait) { .modal-content { width: 100% !important; /* Full width */ } } select.form-control { background: rgba(255, 255, 255, 1); border-width: 1px; border-style: solid; border-color: rgba(226, 226, 226, 1); border-radius: 3px; max-width: 100% !important; } input.form-control { background: rgba(255, 255, 255, 1) !important; border-width: 1px !important; border-style: solid !important; border-color: rgba(226, 226, 226, 1) !important; border-radius: 3px !important; max-width: 100% !important; height: 38px; width: 100% !important; } </style> <script> // Get the modal var modal = document.getElementById("myModal"); // Get the button that opens the modal var btn = document.getElementById("myBtn"); // Get the <span> element that closes the modal var span = document.getElementsByClassName("closex")[0]; // When the user clicks on the button, open the modal btn.onclick = function() { modal.style.display = "block"; } // When the user clicks on <span> (x), close the modal span.onclick = function() { modal.style.display = "none"; } // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } </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