📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv3.demodesign.com.tr
📝
sepet.php
← Geri Dön
<?php require('ust.php');?> <title>Alışveriş Sepetim - <?php echo $ayar['siteadi']; ?></title> <meta name="description" content="<?php echo $ayar['des']; ?>"> <meta name="keywords" content="<?php echo $ayar['keyw']; ?>"> <?php require('menu.php'); $kdvm = $DB->query("select * from moduller where id=1")->fetch(PDO::FETCH_ASSOC); ?> <div class="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-xs-12"> <ul> <li class="home"> <a title="Anasayfa" href="index">Anasayfa</a><span>»</span></li> <li class="category13"><strong>Sepetim</strong></li> </ul> </div> </div> </div> </div> <?php if($sepet['urunid']==''){?> <a href="index"/><center><img src="images/sepet-bos.png"/></center></a> <?php $ip = ipAl(); $delete = $DB->exec("DELETE FROM sepet WHERE ip='$ip'");?> <?php } else { ?> <section class="main-container col1-layout wow bounceInUp animated"> <div class="main container"> <div class="col-main"> <div class="cart"> <div class="page-content page-order"> <ul class="step"> <li class="current-step"><span>01. Sepetiniz</span></li> <li><span>02. Üye Girişi</span></li> <li><span>03. Sipariş Bilgileri</span></li> <li><span>04. Sipariş</span></li> </ul> <div class="heading-counter warning">Sepetinizde : <?php $sorgu = $DB->prepare("SELECT COUNT(*) FROM sepet where ip='$ip'"); $sorgu->execute(); $say = $sorgu->fetchColumn(); ?><span><?php echo $say;?> ürün bulunmaktadır.</span> </div> <div class="order-detail-content"> <div class="table-responsive"> <table class="table table-bordered cart_summary"> <thead> <tr> <th class="cart_product">Ürün</th> <th>Ürün Detayı</th> <th>Birim Fiyatı</th> <th>Adet Sayısı</th> <th>KDV Bedeli</th> <th>Toplam Tutar</th> <th class="action"><i class="fa fa-trash-o"></i></th> </tr> </thead> <tbody> <?php $ip = ipAl(); $sepetkontrol = $DB->prepare("SELECT * FROM sepet WHERE ip=?"); $sepetkontrol->execute(array($ip)); if ($sepetkontrol->rowCount()) { $uysepet = $DB->prepare("SELECT * FROM urunler INNER JOIN sepet ON urunler.urunid = sepet.urunid WHERE sepet.ip=? ORDER BY sepet.sepetId DESC"); $uysepet->execute(array($ip)); foreach ($uysepet as $sepet) { $sepFiy = $sepet['fiyat']+$sepet['ekfiyat']; $sepetFiyat = number_format($sepFiy, 2, ',', '.'); ?> <tr> <td class="cart_product"><a href="urunler/<?php echo $sepet['seo']?>-<?php echo $sepet['urunid']?>"><img width="100px" height="100px" src="images/urunler/<?php echo $sepet['resim']?>" alt="<?php echo $sepet['urunAdi']?>"></a></td> <td class="cart_description"><p class="product-name"><a href="urunler/<?php echo $sepet['seo']?>-<?php echo $sepet['urunid']?>"><?php echo $sepet['urunAdi']?> </a></p> <b><?php echo $sepet['uoz']?></b> <?php echo $sepet['urunozellik']?><br> <td class="availability in-stock"><?php $goster = $sepet['fiyat']*$sepet['urunAdet']; echo $gosterx = number_format($goster,2,",","."); ?> TL</td> <td class="qty"><input class="form-control input-sm" type="text" value="<?php echo $sepet['urunAdet']?>" disabled></td> <td class="price"> <?php $baksanaaaa = $sepet['kdv']*$sepet['urunAdet']; echo $goster = number_format($baksanaaaa,2,",",".");?> TL</td> <td class="availability in-stock"><?php $sepetson = $sepet['kdv']+$sepet['fiyat']; $sepettoplam = $sepet['urunAdet']*$sepetson; echo $gostersepet = number_format($sepettoplam,2,",",".");?> TL</td> <td class="action"><a href="sepet?sepetID=<?php echo $sepet['sepetId'];?>"><i class="icon-close"></i></a></td> </tr> <?php }} ?> </tbody> <tfoot> <tr> <td colspan="2" rowspan="2"> <form action="" method="POST"/> <input type="hidden" value="<?php echo $ip;?>" name="ip"/> <input type="text" placeholder="Kupon Kodunu Giriniz" class="input-info" style="width: 30%;border: 2px solid #a4a5a799;height: 40px;padding: 10px" name="kupon"/> <button class="bubbly-button" style="background-color: green;" type="submit" name="sepetguncelle">SEPETİ GÜNCELLE</button> </form> <form action="" method="POST"/> <input type="hidden" value="<?php echo $ip;?>" name="ip"/> <button class="bubbly-button" type="submit" name="sepetsifirla">SEPETİ BOŞALT</button> </form> </td> <?php if($topFiyat >= $modul['ukargo']){?> <td colspan="3">Kargo Bedeli</td> <td colspan="2">Ücretsiz Kargo </td> </tr> <?php $query = $DB->query("SELECT SUM(kdv*urunAdet) FROM sepet WHERE ip='$ip'")->fetch(PDO::FETCH_ASSOC); foreach( $query as $row ){?> <tr> <td colspan="3"><strong>Ödenecek Tutar</strong></td> <td colspan="2"><strong><?php $ode = $topFiyat+$row-$sepet['kupon']; echo $neoderim = number_format($ode,2,",","."); ?> TL</strong></td> </tr> <?php } ?> <?php } else { ?> <td colspan="3">Kargo Bedeli</td> <td colspan="2"><?php echo $modul['kargo'];?> TL</td> </tr> <?php $query = $DB->query("SELECT SUM(kdv*urunAdet) FROM sepet WHERE ip='$ip'")->fetch(PDO::FETCH_ASSOC); foreach( $query as $row ){?> <tr> <td colspan="3"><strong>Ödenecek Tutar</strong></td> <td colspan="2"><strong><?php $ode = $topFiyat+$row+$modul['kargo']-$sepet['kupon']; echo $neoderimz = number_format($ode,2,",","."); ?> TL</strong></td> </tr> <?php }} ?> </tfoot> <tfoot> <tr> <td colspan="2" rowspan="2"> <?php if($sepet['kupon']>'0'){?> <div style="background: #605ca8; color: white; padding: 20px; font-weight: bold;"> <span class="text">İndirim Kuponu Bedeli :</span><span class="item" style=""> - <?php echo $sepet['kupon']; ?> TL</span> <a style="color:white;" href="sepet?kuponid=<?php echo $sepet['sepetId'];?>"><b style="float: right;">x</b></a> </div> <?php } ?> </td> <?php $query = $DB->query("SELECT SUM(kdv*urunAdet) FROM sepet WHERE ip='$ip'")->fetch(PDO::FETCH_ASSOC); foreach( $query as $row ){?> <td colspan="3">Ara Tutar</td> <td colspan="2"><?php $aratutar = $topFiyat; echo $aratutarim = number_format($aratutar,2,",",".");?> TL</td> </tr> <tr> <td colspan="3">KDV Bedeli</td> <td colspan="2"><?php echo $kdvim = number_format($row,2,",",".");?> TL</td> </tr> <?php }?> </tfoot> </table> </div> <div class="cart_navigation"> <a class="continue-btn" href="index"><i class="fa fa-arrow-left"> </i> Alışverişe Devam</a> <?php if ($_SESSION['uyegiris'] == 'true') { ?> <a class="checkout-btn" href="satin-al"><i class="fa fa-check"></i> Siparişi Tamamla</a> <?php } else { ?> <a class="checkout-btn" href="giris-kontrol"><i class="fa fa-check"></i> Siparişi Tamamla</a> <?php } ?> </div> </div> </div> </div> </div> </div> </section> <?php } ?> <?php require('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