📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv12.demodesign.com.tr
/
panel
/
inc
📝
trendyol-siparisler.php
← Geri Dön
<?php if ( !empty($ayar['td_magazaID']) and !empty($ayar['td_apiKey']) and !empty($ayar['td_apiSecret']) ) { include_once '../eklentiler/trendyol/trendyol.class.php'; $sorguSay = get_tdCURL( 0, 0, 8, 200 ); $liste = true; } else { $sorguSay = array(); $getTdOrderList = array(); $liste = false; } $say = count($sorguSay); $top_sayfa = $say; $page = $_GET['no']; $limit = 10; $page_url = $sayfa.'/'; $baslangic = ($page * $limit) - $limit; ?> <div class="breadcrumb-header justify-content-between"> <div class="my-auto"> <div class="d-flex"> <h4 class="content-title mb-0 my-auto">Trendyol Siparişler</h4><span class="text-muted mt-1 tx-13 ml-2 mb-0">/ Listele</span> </div> </div> </div> <div id="ajax_msg"></div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-12"> <?php if ( $liste == true ) { ?> <div class="order-table"> <div class="table-responsive"> <table id="example1" class="table table-striped table-bordered text-nowrap mb-0"> <thead> <tr class="bold border-bottom"> <th class="border-bottom-0">ID </th> <th class="border-bottom-0">İsim-Soyisim </th> <th class="border-bottom-0">İl-İlçe </th> <th class="border-bottom-0">Kargo </th> <th class="border-bottom-0">Ürün Adı </th> <th class="border-bottom-0">Ödeme</th> </tr> </thead> <tbody> <?php $sipSayfa = $page - 1; $getTdOrderList = get_tdCURL( $sipSayfa, 0, 8 ); if ( count($getTdOrderList) != 0 ) { $i=1; foreach( $getTdOrderList as $row ){ $kargodurum = substr($row['cargoTrackingNumber'],0,3); if ( $kargodurum == 733 ){ $kargo = 'Trendyol Express'; } elseif ( $kargodurum == 725 ){ $kargo = 'Yurtiçi Kargo'; } elseif ( $kargodurum == 726 ){ $kargo = 'Aras Kargo'; } elseif ( $kargodurum == 727 ){ $kargo = 'Sürat Kargo'; } elseif ( $kargodurum == 728 ){ $kargo = 'MNG Kargo'; } elseif ( $kargodurum == 729 ){ $kargo = 'UPS Kargo'; } elseif ( $kargodurum == 732 ){ $kargo = 'Alternatif Teslimat'; } elseif ( $kargodurum == 734 ){ $kargo = 'PTT Kargo'; } elseif ( $kargodurum == 984 ){ $kargo = 'Horoz Lojistik'; } else { $kargo = '-'; } echo ' <tr> <td>'.$i.'</td> <td>'.$row['shipmentAddress']['fullName'].'</td> <td>'.$row['shipmentAddress']['city'].' - '.$row['shipmentAddress']['district'].'</td> <td>'.$kargo.'</td> <td>'.$row['lines'][0]['productName'].'</td> <td>'.fiyat($row['totalPrice']).' TL</td> </tr> '; $i++; } }else{ echo '<tr><td colspan="6"><center><h2>Sipariş bulunamadı.</h2></center></td></tr>'; } ?> </tbody> </table> </div> </div> <div class="pagination-wrapper" style="margin-bottom: 10px;float: right;"> <nav aria-label="Page navigation"> <ul class="pagination mb-0"> <?php Sayfala($top_sayfa,$page,$limit,$page_url); ?> </ul> </nav> </div> <?php } else { ?> Lütfen Trendyol API ayarlarını yapınız. <?php }?> </div> </div> </div> </div> </div> </div>
💾 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