📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv4.demodesign.com.tr
📝
sepet.php
← Geri Dön
<?php require_once 'ayar/Config.php'; $odemeayar = $db->query("SELECT * FROM paytr WHERE id = '1'")->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="tr"> <head> <meta charset="utf-8"> <!--===== Meta =====--> <title> Alışveriş Sepeti </title> <meta name="description" content="<?php echo $Site->site_ayarlari('site-seo-aciklama'); ?>"> <meta name="keywords" content="<?php echo $Site->site_ayarlari('site-seo-etiket'); ?>"> <link href="css/shop.css" rel="stylesheet" type="text/css" /> <!--===== Header =====--> <?php include('header.php'); ?> <?php $phones = explode(',',$Site->site_ayarlari('site-telefon1')); ?> <?php $mails = explode(',',$Site->site_ayarlari('site-eposta')); ?> <?php $adress = explode(',',$Site->site_ayarlari('site-adres')); ?> <!--===== Body =====--> <section class="beautypress-inner-welocme-section beautypress-bg parallax-bg" data-parallax="scroll" style="background-color:#<?php echo $Site->site_ayarlari('tema_renk2'); ?>;"> <div class="beautypress-black-overlay"></div> <div class="container"> <div class="beautypress-inner-welcome-content"> <h1 style="text-transform: uppercase;" class="color-white"><i class="fa fa-shopping-cart icon"></i> ALIŞVERİŞ</h1> </div> <div class="beautypress-inner-welcome-footer-content"> <ul class="beautypress-breadcrumb"> <li><a href="./">ANA SAYFA</a></li> <li><a style="text-transform: uppercase;" href="sepet">SEPET</a></li> </ul> </div> </div> </section> <!-- Sayfa --> <br> <?php if($total_count > 0){ ?> <section class="section-padding"> <div class="container"> <div class="row"> <p> <section> <div> <div class="row"> <div class="col-lg-12 col-md-12"> <h2 class="text-center">Sepetinizde <strong class="color-danger"> <?php echo $total_count; ?> </strong> adet ürün bulunmaktadır </h2> <?php }else{ ?> <div class="alert alert-warning"> <center> <strong> <i class="fa fa-exclamation-circle" aria-hidden="true"> </i> Sepetinizde Ürün Bulunmamaktadır </strong> </center> </div> <style> .alisverisebasla { width:auto; height:auto; overflow:hidden; display:inline-block; border-radius:5px; background-color:#<?php echo $Site->site_ayarlari('tema_renk1'); ?>; color:white; transition-duration:.1s; transition-timing-function:linear; margin-top:25px; margin-bottom:25px } .alisverisebasla:hover { -webkit-box-shadow:0 0 45px -12px rgba(0,0,0,0.75); -moz-box-shadow:0 0 45px -12px rgba(0,0,0,0.75); box-shadow:0 0 45px -12px rgba(0,0,0,0.75) } .alisverisebasla p { padding:0; margin:0; overflow:hidden; font-size:14px; font-weight:700; margin-left:30px; margin-right:30px; margin-top:15px; margin-bottom:15px } .no-item-error { width:100%; height:auto; overflow:hidden; text-align:center; background:#F8F8F8; border:1px solid #EBEBEB; padding:10px } .no-item-error p { padding:0; margin:0; overflow:hidden; color:#333 } .satin-al-bilgi-out { height:auto; overflow:hidden; text-align:center; margin:0 auto } </style> <div class="satin-al-bilgi-out" > <a href="urunlertumu" style="color:#333"> <div class="alisverisebasla"> <p> <i class="fa fa-cart-plus"> </i> ALIŞVERİŞE BAŞLA </p> </div> </a> </div><br> <?php } ?> <?php if($total_count != 0){ ?> <div class="table-responsive"> <table class="table"> <thead> <tr> <th>Ürün Fotoğrafı </th> <th>Ürün Adı </th> <th>Birim </th> <th>Adet </th> <th>Toplam </th> <th>İptal </th> </tr> </thead> <tbody> <?php foreach($shopping_products as $product){ ?> <tr > <td class="image"> <a class="media-link" target="_blank" href="urun/<?php echo $product->urun_seflink?>" alt="<?php echo $product->urun_baslik?>"> <img class="img-fluid" src="upload/<?php echo $product->anasayfa_resim?>" alt="<?php echo $product->urun_baslik?>"> </a> </td> <td class="description"> <?php echo $product->urun_baslik?> </td> <td class="description2"> <?php echo $product->urun_fiyat?> <i class="fa fa fa-try"> </i> </td> <td class="td-quentety"> <input style="width: 30px;" type="text" value="<?php echo $product->count?>" disabled> <a href="cartdb.php?p=incCount&urun-id=<?php echo $product->urun_id?>" class="btn btn-sm btn-success"> <span class="fa fa-plus"> </span> </a> <a href="cartdb.php?p=decCount&urun-id=<?php echo $product->urun_id?>" class="btn btn-sm btn-warning"> <span class="fa fa-minus"> </span> </a> </td> <td class="price"> <?php echo $product->total_price?> <i class="fa fa fa-try"> </i> </td> <td class="total"> <button urun-id="<?php echo $product->urun_id?>" class="btn btn-sm btn-danger removetocart" > <i class="fa fa-close"> </i> </button> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="row mt-60"> <div class="col-md-12"> </div> <div class="col-md-12 float-right sm-mt-30"> <table class="table table-dark text-left"> <tbody> <tr class="total"> <td> <b>Kargo Ücreti </b> </td> <td> <b> <?php if(empty($total_kargo)){ echo "Ücretsiz Kargo"; }else{ echo $total_kargo; echo ' <i class="fa fa fa-try"> </i>'; } ?> </b> </td> </tr> <tr class="total"> <td> <b>Ürün Toplam </b> </td> <td> <b> <?php echo number_format($total_price, 2, ',', '.'); ?> <i class="fa fa fa-try"> </i> </b> </td> </tr> <tr class="total"> <td> <b>Genel Toplam </b> </td> <td> <b> <?php echo number_format($total_price+$total_kargo, 2, ',', '.'); ?> <i class="fa fa fa-try"> </i> </b> </td> </tr> </tbody> </table> </div> </div> </div> </section> <section class="checkout-page page-section-ptb"> <div class="container"> <div class="row"> <form action="odeme" method="post" > <div class="col-lg-12 col-md-12"><br> <h2 class="mb-20"><i class="fa fa-shopping-cart icon"></i> Sipariş Bilgileriniz </h2><br> <div class="section-field mb-30"> <label class="mb-10">Ad Soyad * </label> <input id="name" type="text" placeholder="Alıcı Ad Soyad" class="form-control" name="adsoyad" required> </div> <div class="section-field mb-30"> <label class="mb-10">E-Posta * </label> <input id="name" type="text" placeholder="E-Mail adresi" class="form-control" name="email" required> </div> <div class="section-field mb-30"> <label class="mb-10">Telefon * </label> <input id="name" type="text" placeholder="Telefon veya GSM" class="form-control" name="telefon" required> </div> <div class="section-field mb-30"> <label class="mb-10">Açık Adres * </label> <textarea class="not-click form-control" placeholder="Adres *" rows="4" name="adres" cols="50" required> </textarea> </div> <div class="section-field mb-30"> <label class="mb-10">Sipariş Notu </label> <input id="name" type="text" placeholder="Sipariş ek notu" class="form-control" name="eknot"> </div> <div class="clearfix"> <label> <?php if($odemeayar['havaleaktif']==1){ ?> <input type="radio" name="odeme" value="1"> <span>Havale/EFT </span><br> <?php } ?> </label> <label> <?php if(!empty($odemeayar['aktif'])){ ?> <input type="radio" name="odeme" value="2"> <span>Kredi Kartı </span><br> <?php } ?> </label> <label> <?php if($odemeayar['kapidaodemeaktif']==1){ ?> <input type="radio" name="odeme" value="3"> <span>Kapıda Ödeme </span><br> <?php } ?> </label> </div> </div> <div class="col-lg-12 col-md-12"> <div class="gray-bg pl-50 pr-50 pt-50 pb-50"> <table class="mb-30"> <tbody> <tr><br> <th class="pl-40"> <h4>Ödeyeceğiniz Toplam Tutar: </h4> </th> <td class="pl-40"> <h4> <?php echo $total_price+$total_kargo; ?> <i class="fa fa fa-try"> </i> </h4> </td> </tr> </tbody> </table> <button type="submit" class="btn button btn-block">Satın Al <span class="icon-action-redo"> </span> </button> <br> </div> <center> <img src="images/paytrlogo.png"> </center> </div> </form> </div> </div> </section> <?php } ?> </p> </div> </div> </section> <?php include('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