📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
themes
/
default
📝
cart.php
← Geri Dön
<?php m_header(); ?> <section class="cover pt-5 pb-5" style="background: url('<?php echo SITE_THEME_URL; ?>/assets/img/cover-cart.png') center center no-repeat; background-size: cover;"> <div class="container d-flex align-items-center justify-content-center"> <h2 class="d-inline-flex align-items-center flex-column justify-content-center"><i class="ri-shopping-basket-2-line fw-normal"></i> Alışveriş Sepetim</h2> </div> </section> <section class="page cart pt-5 pb-5"> <div class="container-lg"> <div class="row"> <?php if(count($_SESSION['cart'])==0) { echo m_alert(LG_INFO,LG_CART_NO_RESULTS); } else { ?> <div class="col-12" id="sepetFiyat"> <div class="table-responsive"> <table class="table"> <thead> <tr> <th scope="col">Ürünleriniz</th> <th scope="col">Varyant</th> <th scope="col">Miktar</th> <th scope="col"><?= LG_PRICE?></th> <th scope="col">Toplam</th> </tr> </thead> <tbody> <?php $cart_info = cart_info(); foreach($cart_info['products'] as $product) { ?> <tr> <td> <a href="<?= $product['link']?>" class="d-flex align-items-center"> <img src="<?= $product['image']?>" class="img-fluid me-3" width="120" height="80" alt=""> <span class="title"><?= $product['title'] ?></span> </a> </td> <td><?= $product['variants'] ?></td> <td> <div class="d-flex align-items-center"> <a class="refresh quantity_action" data-type="up" data-variant='<?= json_encode($product['variantlar'], JSON_UNESCAPED_UNICODE)?>' rel="<?= $product['id']?>"><i class="ri-arrow-up-line"></i></a> <span class="number"><?= $product['quantity']." ".LG_QUANTITY?></span> <a class="delete quantity_action me-4" data-type="down" data-variant='<?= json_encode($product['variantlar'], JSON_UNESCAPED_UNICODE)?>' rel="<?=$product['id']?>"><i class="ri-arrow-down-line"></i></a> <a href="<?= m_permalink('cart_remove',$product['id'])?>" class="delete"><i class="ri-delete-bin-2-line"></i></a> </div> </td> <td><?= $product['sale_price'].' '.$product_currency_type ?></td> <td><?= $product['sub_total'].' '.$product_currency_type ?></td> </tr> <?php } ?> </tbody> </table> </div> <div class="subtitle text-center mt-5 mb-3">Bir sonraki adımda ne yapmak istersiniz?</div> <div class="desc text-center mb-5">Eğer kullanmak istediğiniz bir indirim kodu veya puan varsa ya da kargo maliyetini hesaplamak isterseniz bir seçim yapınız. </div> <div class="accordion" id="patiAccordion"> <div class="accordion-item"> <h2 class="accordion-header" id="heading1"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse1" aria-expanded="true" aria-controls="collapse1"> <i class="ri-coupon-3-line me-2"></i> Kupon Kodu Kullan </button> </h2> <div id="collapse1" class="accordion-collapse collapse" aria-labelledby="heading1" data-bs-parent="#patiAccordion"> <div class="accordion-body"> <p>Kupon Kodu</p> </div> </div> </div> <div class="accordion-item"> <h2 class="accordion-header" id="heading2"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse2" aria-expanded="true" aria-controls="collapse2"> <i class="ri-calculator-line me-2"></i> Kargo ve Vergileri Hesapla </button> </h2> <div id="collapse2" class="accordion-collapse collapse" aria-labelledby="heading2" data-bs-parent="#patiAccordion"> <div class="accordion-body"> <ul class="price"> <li><span><?php echo LG_TOTAL_CARGO_PRICE; ?>:</span><span><?php echo $cart_info['total_cargo_price']; ?> <?php echo currency_types(m_setting('currency_type'),'value'); ?></span></li> <li><span><?php echo LG_TOTAL_TAX; ?>:</span><span><?php echo $cart_info['total_tax']; ?> <?php echo currency_types(m_setting('currency_type'),'value'); ?></span></li> </ul> </div> </div> </div> </div> <div class="line mt-5 mb-5"></div> <ul class="price"> <li><span><?php echo LG_DISCOUNTED; ?>:</span><span><?php echo $cart_info['discount']; ?> <?php echo currency_types(m_setting('currency_type'),'value'); ?></span></li> <li><span><?php echo LG_TOTAL; ?>:</span><span><?php echo $cart_info['total']; ?> <?php echo currency_types(m_setting('currency_type'),'value'); ?></span></li> </ul> <div class="button-group mt-5 text-center d-flex align-items-center justify-content-center"> <a href="#" class="btn-homepage me-2"><i class="ri-arrow-left-line"></i> MAĞAZAYA GERİ DÖN</a> <a href="javascript:void(0)" id="adres_Secim" class="btn-complete ms-2">ADRES VE ÖDEME SEÇİMİ <i class="ri-arrow-right-line"></i></a> </div> </div> <div class="col-12" id="sepetAdres" style="display: none"> <form> <?php if(m_user_check()) { ?> <?php }else{ ?> <div class="form-group mb-4"> <div class="head"> <i class="ri-user-follow-line"></i> HESAP AÇ VEYA GİRİŞ YAP </div> <div class="body"> <div class="row"> <div class="col-lg-4"> <div class="form-radio"> <input class="form-check-input" type="radio" name="hesap" id="hesap1" value="hesap1" checked> <label class="form-check-label" for="hesap1"> Hesap Oluştur </label> </div> </div> <div class="col-lg-4"> <div class="form-radio mt-lg-0 mt-md-2 mt-sm-2 mt-2"> <input class="form-check-input" type="radio" name="hesap" id="hesap2" value="hesap2"> <label class="form-check-label" for="hesap2"> Misafir Alışverişi </label> </div> </div> <div class="col-lg-4"> <div class="form-radio mt-lg-0 mt-md-2 mt-sm-2 mt-2"> <input class="form-check-input" type="radio" name="hesap" id="hesap3" value="hesap3"> <label class="form-check-label" for="hesap3"> Kayıtlı Müşteriyim </label> </div> </div> </div> </div> </div> <div class="form-group mb-4"> <div class="head"> <i class="ri-user-3-line"></i> KİŞİSEL BİLGİLERİNİZ </div> <div class="body"> <div class="row"> <div class="col-md-6"> <input type="text" class="form-control" placeholder="Adınız*"> </div> <div class="col-md-6"> <input type="text" class="form-control" placeholder="Soyadınız*"> </div> <div class="col-md-6"> <input type="text" class="form-control mb-xl-0 md-lg-0 md-md-0" placeholder="E-Posta"> </div> <div class="col-md-6"> <input type="text" class="form-control mb-0" placeholder="Telefon"> </div> </div> </div> </div> <div class="form-group mb-4"> <div class="head"> <i class="ri-key-line"></i> PAROLANIZ </div> <div class="body"> <div class="row"> <div class="col-md-6"> <input type="text" class="form-control mb-xl-0 md-lg-0 md-md-0" placeholder="Parolanız"> </div> <div class="col-md-6"> <input type="text" class="form-control mb-0" placeholder="Parola Tekrar"> </div> </div> </div> </div> <div class="form-group mb-4"> <div class="head"> <i class="ri-account-pin-circle-line"></i> ADRES BİLGİLERİNİZ </div> <div class="body"> <div class="row"> <div class="col-md-6"> <input type="text" class="form-control" placeholder="Adres Adı"> </div> <div class="col-md-6"> <input type="text" class="form-control" placeholder="Ülke Seçin"> </div> <div class="col-md-6"> <input type="text" class="form-control" placeholder="İlçe Seçin"> </div> <div class="col-md-6"> <input type="text" class="form-control" placeholder="İlçe / Semt"> </div> <div class="col-md-6"> <input type="text" class="form-control mb-xl-0 md-lg-0 md-md-0" placeholder="Adresinizi Yazın..."> </div> <div class="col-md-6"> <input type="text" class="form-control mb-0" placeholder="Posta Kodunuz"> </div> </div> </div> </div> <?php } ?> <div class="form-group mb-4"> <div class="head"> <i class="ri-bank-card-2-line"></i> <?php echo LG_CARGO_INFORMATIONS; ?> </div> <?php $customer_address = $db->table('customer_address')->where('u_id','=',m_user('id'))->order('id','asc')->get(); if($customer_address['total_count']==0) { echo '<a href="'.m_permalink('account_address_add').'">'.m_alert(LG_ERROR,LG_CART_NO_ADDRESS_ERROR).'</a>'; } else { $customer_address_first = $customer_address['data'][0]; ?> <div class="body"> <div class="form-row"> <div class="form-group col-lg-12"> <div class="custom_select"> <select class="form-control cart_customer_address"> <?php $customer_address = $db->table('customer_address')->where('u_id','=',m_user('id'))->order('id','asc')->get(); foreach($customer_address['data'] as $address) { echo '<option value="'.$address['id'].'">'.$address['title'].'</option>'; } ?> </select> </div> </div> </div> <div class="cart_address_details"> <div class="p-3 bg-light"> <h6 class="m-0 text-dark d-flex align-items-center"><?php echo $customer_address_first['title']; ?></h6> </div> <div class="p-3" style="min-height:100px;"> <?php echo $customer_address_first['address']; ?> <br> <?php echo ''.$db->table('regions')->where('id','=',$customer_address_first['county'])->get_var('title').' / '.$db->table('regions')->where('id','=',$customer_address_first['city'])->get_var('title').' / '.$db->table('regions')->where('id','=',$customer_address_first['country'])->get_var('title').''; ?> <br> </div> </div> </div> <?php } ?> </div> <div class="form-group mb-4"> <div class="head"> <i class="ri-bank-card-2-line"></i> <?php echo LG_PAYMENT_OPTIONS; ?> </div> <div class="body"> <div class="row"> <?php if(m_setting('credit_card_payment')==1) { ?> <div class="col-lg-4"> <div class="form-radio"> <input class="form-check-input" type="radio" name="odeme" id="odeme1" value="2" checked> <label class="form-check-label" for="odeme1"> Online Ödeme / 3D Secure </label> </div> </div> <?php } ?> <?php if(m_setting('bank_payment')==1) { ?> <div class="col-lg-4" rel="1"> <div class="form-radio mt-lg-0 mt-md-2 mt-sm-2 mt-2 payment_options"> <input class="form-check-input" type="radio" name="odeme" id="odeme3" value="1"> <label class="form-check-label" for="odeme3"> Banka Havalesi </label> </div> </div> <?php } ?> </div> </div> </div> <ul class="price mb-4"> <li><span><?php echo LG_DISCOUNTED; ?>:</span><span><?php echo $cart_info['discount']; ?> <?php echo currency_types(m_setting('currency_type'),'value'); ?></span></li> <li><span><?php echo LG_TOTAL; ?>:</span><span><?php echo $cart_info['total']; ?> <?php echo currency_types(m_setting('currency_type'),'value'); ?></span></li> </ul> <div class="group mb-4"> <div class="form-check form-check-inline d-flex align-items-center"> <input class="styled-checkbox" id="gizlilik" type="checkbox" value="value1"> <label for="gizlilik">Gizlilik İlkeleri'ı okudum ve kabul ediyorum.</label> </div> </div> </form> <div class="row"> <div class="col-12"> <div id="cart_payment_detail"> </div> </div> </div> <div class="button-group mt-5 text-center d-flex align-items-center justify-content-center"> <a href="javascript:void(0)" class="btn-homepage me-2 mt-0"><i class="ri-arrow-left-line fw-normal"></i> GERİ DÖN</a> <a href="javascript:void(0)" class="btn-complete ms-2 mt-0 cart_payment"><?php echo LG_CHECKOUT; ?> <i class="ri-arrow-right-line"></i></a> </div> </div> <?php } ?> </div> </section> <section class="whyus pt-5 pb-5"> <div class="container-lg"> <div class="title text-center">NEDEN <?php echo str_replace('https://','',SITE_DOMAIN); ?>?</div> <div class="row mt-5"> <?php $boxes_bottom = $db->table('boxes_bottom')->where('status','=',1)->order('b_rank','ASC')->get(); if($boxes_bottom['total_count'] != 0){ foreach($boxes_bottom['data'] as $boxes){ $title = $boxes['title']; $content = $boxes['content']; $color = $boxes['color']; $icon = $boxes['icon']; ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <style> .subtitle-<?= $boxes['id']?>:before { content: ""; position: absolute; bottom: 0; width: 24px; height: 4px; border-radius: 2px; background-color: <?= $color?>; } </style> <div class="item orange" > <div class="subtitle subtitle-<?= $boxes['id']?>" style="color:<?= $color?>!important;" ><?= $title ?></div> <p><?= $content ?></p> </div> </div> <?php } } ?> </div> </div> </section> <?php m_footer(); ?>
💾 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