📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv8.demodesign.com.tr
📝
shop-checkout.php
← Geri Dön
<?php // +------------------------------------------------------------------------+ // | @author Ercan Agkaya (Themerig) // | @author_url 1: https://www.themerig.com // | @author_url 2: https://codecanyon.net/user/themerig // | @author_email: support@themerig.com // +------------------------------------------------------------------------+ // | Techno Cms - E-Commerce Script // | Copyright (c) 2018 Techno CMS. All rights reserved. // +------------------------------------------------------------------------+ include ('includes/head.php'); include ('includes/header.php'); ?> <section class="flat-breadcrumb"> <div class="container"> <div class="row"> <div class="col-md-12"> <ul class="breadcrumbs"> <li class="trail-item"> <a href="#" title="">Anasayfa</a> <span><img src="images/icons/arrow-right.png" alt=""></span> </li> <li class="trail-item"> <a href="shop-cart" title="">Sepeti Görüntüle</a> <span><img src="images/icons/arrow-right.png" alt=""></span> </li> <li class="trail-end"> <a href="shop-checkout" title="">Sipariş</a> </li> </ul><!-- /.breacrumbs --> </div><!-- /.col-md-12 --> </div><!-- /.row --> </div><!-- /.container --> </section><!-- /.flat-breadcrumb --> <section class="flat-checkout"> <div class="container"> <div class="row"> <div class="col-md-7"> <div class="box-checkout"> <h3 class="title">Sipariş</h3> <?php if(!isset($_SESSION['session'])){ ?> <div class="checkout-login"> Değerli ziyaretçimiz, misafir üye olarak sipariş veriyorsunuz. Üye olduysanız gitiş yapabiilirsiniz. <a href="hesabim.php" title="">Giriş Yap</a> </div> <?php }else{ $musteri = $db->query("SELECT * FROM users WHERE id = ".$_SESSION['session'], PDO::FETCH_ASSOC); if ($musteri->rowCount()) { foreach ($musteri as $musteri) {} } } ?> <form action="shop-complete" method="post" class="checkout" accept-charset="utf-8" id="shop-checkout"> <div class="billing-fields"> <div class="fields-title"> <h3>Fatura detayları</h3> <span></span> <div class="clearfix"></div> </div><!-- /.fields-title --> <div class="fields-content"> <div class="field-row"> <p class="field-one-half"> <label for="first-name">İsim *</label> <input type="text" id="first-name" name="first-name" required="" placeholder="Ali" value="<?=$musteri['fullname']?>" > </p> <p class="field-one-half"> <label for="last-name">Soyisim *</label> <input type="text" id="last-name" name="last-name" required="" placeholder="Tufan" value="<?=$musteri['surname']?>" > </p> <div class="clearfix"></div> </div> <div class="field-row"> <label for="company-name">Firma Adı</label> <input type="text" id="company-name" name="company-name" value="<?=$musteri['firma']?>" > </div> <div class="field-row"> <p class="field-one-half"> <label for="email-address">Eposta Adresi *</label> <input type="email" id="email-address" name="email-address" required="" style="padding: 8px 15px 8px 30px;" value="<?=$musteri['email']?>" > </p> <p class="field-one-half"> <label for="phone">Telefon *</label> <input type="text" id="phone" required="" name="phone" value="<?=$musteri['phone']?>" > </p> <div class="clearfix"></div> </div> <div class="field-row"> <label for="address">Adres *</label> <input type="text" id="address" name="address" required="" placeholder="" value="<?=$musteri['adres']?>" > </div> <div class="field-row"> <p class="field-one-half"> <label for="town-city">Şehir *</label> <input type="text" id="town-city" required="" name="town-city" value="<?=$musteri['sehir']?>" > </p> <p class="field-one-half"> <label for="post-code">Posta Kodu *</label> <input type="text" id="post-code" required="" name="post-code" value="<?=$musteri['posta']?>" > </p> <div class="clearfix"></div> <div class="field-row"> <label for="notes">Sipariş Notu</label> <textarea id="notes" name="notes" placeholder="Siparişinizle ilgili notlar, ör. teslimat için özel notlar."></textarea> </div> </div> </div><!-- /.fields-content --> </div><!-- /.billing-fields --> <br> <!-- <div class="shipping-address-fields"> <div class="fields-title"> <h3>Kargo Alıcısı</h3> <span></span> <div class="clearfix"></div> </div> <div class="fields-content"> <div class="checkbox"> <input type="checkbox" id="kargo-adresi-checkbox" name="create-account-2" onchange="faturaAdresiToKargoAdresi()"> <label for="kargo-adresi-checkbox">Kargo fatura adresine gönderilsin</label> </div> <div class="field-row"> <p class="field-one-half"> <label for="first-name-2">İsim *</label> <input type="text" id="first-name-2" required="" name="first-name-2" placeholder="Ali"> </p> <p class="field-one-half"> <label for="last-name-2">Soyisim *</label> <input type="text" id="last-name-2" required="" name="last-name-2" placeholder="Tufan"> </p> <div class="clearfix"></div> </div> <div class="field-row"> <label for="address">Adres *</label> <input type="text" id="address-2" required="" name="address-2" placeholder=""> </div> <div class="field-row"> <p class="field-one-half"> <label for="town-city">Şehir *</label> <input type="text" id="town-city-2" required="" name="town-city-2"> </p> <p class="field-one-half"> <label for="post-code">Posta Kodu *</label> <input type="text" id="post-code-2" required="" name="post-code-2"> </p> <div class="clearfix"></div> </div> <div class="field-row"> <label for="notes">Sipariş Notu</label> <textarea id="notes" name="notes" placeholder="Siparişinizle ilgili notlar, ör. teslimat için özel notlar."></textarea> </div> </div> </div> --><!-- /.shipping-address-fields --> </div><!-- /.box-checkout --> </div><!-- /.col-md-7 --> <script> function faturaAdresiToKargoAdresi(){ if(document.getElementById("kargo-adresi-checkbox").checked == true){ document.getElementById("first-name-2").value = document.getElementById("first-name").value; document.getElementById("last-name-2").value = document.getElementById("last-name").value; document.getElementById("address-2").value = document.getElementById("address").value; document.getElementById("town-city-2").value = document.getElementById("town-city").value; document.getElementById("post-code-2").value = document.getElementById("post-code").value; } else{ document.getElementById("first-name-2").value = ""; document.getElementById("last-name-2").value = ""; document.getElementById("address-2").value = ""; document.getElementById("town-city-2").value = ""; document.getElementById("post-code-2").value = ""; } } </script> <script> function kargoHesapla(get) { if(get == 1){ function currencyFormat(num) { return" \'\' + num.toFixed(2).replace(/(\d)(?=(\d{3})+(?!\d))/g, \'$1,\')"; } document.getElementById("toplam").innerText = currencyFormat( 3 + parseFloat(document.getElementById("aratoplam").value) ) + " TL"; } if(get == 2){ function currencyFormat(num) { return "\'\' + num.toFixed(2).replace(/(\d)(?=(\d{3})+(?!\d))/g, \'$1,\')"; } document.getElementById("toplam").innerText = currencyFormat( parseFloat(document.getElementById("aratoplam").value) ) + " TL"; document.getElementById("toplam2").innerText = currencyFormat( parseFloat(document.getElementById("aratoplam").value) ); } } </script> <div class="col-md-5"> <div class="cart-totals style2"> <h3>Siparişiniz</h3> <table class="product"> <thead> <tr> <th>Ürün</th> <th>Toplam</th> </tr> </thead> <tbody> <?php $rand_id_cart = $db->query("SELECT count(*) FROM cart WHERE rand_id = '".$_COOKIE['COOKIE_KEY']."'")->fetchColumn(); if ($rand_id_cart > "0") { $new_price_count = $db -> query("SELECT SUM(t_price) as total FROM cart WHERE rand_id = '".$_COOKIE['COOKIE_KEY']."'")->fetch(); $cart_price = number_format($new_price_count['total'],2,',','.'); $cart = $db->prepare("SELECT * FROM cart WHERE rand_id = '".$_COOKIE['COOKIE_KEY']."'"); $cart->execute(); if ($cart->rowCount()) { foreach ($cart as $row) { $gallery = $db -> query("SELECT * FROM gallery WHERE item_id = '".$row['item_id']."' AND que = 2")->fetch(); $items = $db -> query("SELECT * FROM itemsy WHERE id = '".$row['item_id']."'")->fetch(); $new_price = number_format($row['y_price'],2,',','.'); $toplam = number_format($row['t_price'],2,',','.'); if (strlen($items['title']) > 33) { $baslik = substr($items['title'], 0, 33).'...'; } else { $baslik = $items['title']; } echo ' <tr> <td>'.$baslik.' <br />#'.$items['id'].$items['code'].'</td> <td>'.$toplam.' TL</td> </tr>'; } } } else { // SEPET BOŞ } ?> </tbody> </table><!-- /.product --> <table> <tbody> <tr> <td>Aratoplam</td> <td class="subtotal"><?=$cart_price?> TL</td> <input type="text" id="aratoplam" style="display:none;" value="<?=$new_price_count['total']?>"> </tr> <tr> <td>Kargo</td> <td class="btn-radio"> <div class="radio-info"> <input type="radio" id="free-shipping" checked name="radio-flat-rate" onchange="kargoHesapla(2);"> <label for="free-shipping" style="width:150px;">Ücretsiz Kargo</label> </div> <!--- <div class="radio-info"> <input type="radio" id="flat-rate" name="radio-flat-rate" onchange="kargoHesapla(1);"> <label for="flat-rate" style="width:150px;">Sabit Ücret: <span>3.00 TL</span></label> </div> --> <div class="btn-shipping"> <a href="#" title="">Kargo Hakkında Bilgi Al</a> </div> </td><!-- /.btn-radio --> </tr> <tr> <td>Toplam</td> <td class="price-total" id="toplam"><?=$cart_price?> TL</td> </tr> </tbody> </table> <div class="btn-radio style2"> <div class="radio-info"> <input type="radio" id="bank-transfer" name="radio-cash-2" value="havale" checked> <label for="bank-transfer">Doğrudan Banka Havalesi</label> </div> <div class="radio-info"> <input type="radio" id="paypal" name="radio-cash-2" value="kart"> <label for="paypal" >Kredi Kartı / Banka Kartı</label> </div> <!--- <div class="radio-info"> <input type="radio" id="cash-delivery" name="radio-cash-2" value="kapıda"> <label for="cash-delivery">Kapıda Ödeme</label> </div> --> </div><!-- /.btn-radio style2 --> <style type="text/css"> .btn-order .butonn { display: block; background-color: #f92400; color: #fff; font-size: 20px; text-align: center; height: 60px; line-height: 60px; border-radius: 3px; } .btn-order .butonn:hover, .btn-order .butonn:focus { color: #FFF; text-decoration: none; background-color: #2d2d2d; outline: 0; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } </style> <div class="checkbox"> <input type="checkbox" id="checked-order" name="checked-order" checked=""> <label for="checked-order"><a href="belgelerimiz.php">Hizmet ve Gizlilik Sözleşmelerini Okudum ve Kabul Ediyorum *</a></label> </div><!-- /.checkbox --> <input type="text" id="toplam2" name="toplam" style="display:none;" value="<?=$cart_price?>"> <div class="btn-order" style="text-align: -webkit-center;"> <button type="submit" class="order butonn" title="">Siparişi Tamamla</button> </div><!-- /.btn-order --> </form> </div><!-- /.cart-totals style2 --> </div> </div><!-- /.row --> </div><!-- /.container --> </section><!-- /.flat-checkout --> <section class="flat-row flat-iconbox style5"> <div class="container"> <div class="row"> <div class="col-lg-3 col-md-6"> <div class="iconbox style1"> <div class="box-header"> <div class="image"> <img src="images/icons/car.png" alt=""> </div> <div class="box-title"> <h3>Aynı Gün Kargo</h3> </div> <div class="clearfix"></div> </div><!-- /.box-header --> </div><!-- /.iconbox --> </div><!-- /.col-lg-3 col-md-6 --> <div class="col-lg-3 col-md-6"> <div class="iconbox style1"> <div class="box-header"> <div class="image"> <img src="images/icons/order.png" alt=""> </div> <div class="box-title"> <h3>7/24 Destek</h3> </div> <div class="clearfix"></div> </div><!-- /.box-header --> </div><!-- /.iconbox --> </div><!-- /.col-lg-3 col-md-6 --> <div class="col-lg-3 col-md-6"> <div class="iconbox style1"> <div class="box-header"> <div class="image"> <img src="images/icons/payment.png" alt=""> </div> <div class="box-title"> <h3>Online Ödeme</h3> </div> <div class="clearfix"></div> </div><!-- /.box-header --> </div><!-- /.iconbox --> </div><!-- /.col-lg-3 col-md-6 --> <div class="col-lg-3 col-md-6"> <div class="iconbox style1"> <div class="box-header"> <div class="image"> <img src="images/icons/return.png" alt=""> </div> <div class="box-title"> <h3>İade İmkanı</h3> </div> <div class="clearfix"></div> </div><!-- /.box-header --> </div><!-- /.iconbox --> </div><!-- /.col-lg-3 col-md-6 --> </div><!-- /.row --> </div><!-- /.container --> </section> <?php include ('includes/footer.php');
💾 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