📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv12.demodesign.com.tr
/
eklentiler
/
n11
📝
n11.php
← Geri Dön
<?php include '../../panel/fonksiyon.php'; $ayar = $db->query("SELECT * FROM ayar LIMIT 1")->fetch(PDO::FETCH_ASSOC); if ( !empty($_COOKIE['Sayim']) ) { $uyeID = $_COOKIE['Sayim']; } else { $uyeID = 0; } $query = $db->prepare("SELECT * FROM panel_kullanicilari where id=:id"); $kontrol = $query->execute(array(":id"=>$uyeID)); $kontrol = $query->fetchColumn(); if ( $kontrol != 0 ) { // ini_set("soap.wsdl_cache_enabled", "0"); include ("N11.class.php"); $n11Params = array( 'appKey' => $ayar["n11AppKey"], 'appSecret' => $ayar["n11AppSecret"] ); $n11 = new N11($n11Params); // $getN11Kategori = $n11->GetTopLevelCategories(); // $getN11Kategori = $n11->GetN11Kategori( $getN11Kategori, 'Beyaz Eşya' ); $getN11SubKategori = $n11->GetSubCategories( 1001791 ); // $getN11SubKategori = $n11->GetSubCategories( $getN11SubKategori, 0 ); // post alanına eklenecek kısım $getN11Varyant = $n11->GetCategoryAttributes(1002201); // $getN11Varyant = $n11->GetCategoryAttributesId(1001791); // $getN11Varyant = $n11->GetN11Varyant( $getN11Varyant ); $gtin = create_randInt(13); $saveProduct = array( 'productSellerCode' => 'az32897570', 'title' => 'Deneme üründür satın almayınız.', 'subtitle' => 'Api Test ürünü ', 'description' => 'Deneme ürünümüz.', 'attributes' => array( 'attribute' => Array() ), 'category' => array( 'id' => 1001791 ), 'price' => 0.99, 'currencyType' => 'TL', 'domestic' => true, 'unitInfo' => '', 'groupAttribute' => '', 'groupItemCode' => '', 'itemName' => '', 'images' => array( 'image' => array( 'url' => 'https://www.edebiyatciyim.com/wp-content/uploads/2017/07/Deneme.jpg', 'order' => 1 ) ), 'saleStartDate' => '', 'saleEndDate' => '', 'productionDate' => '', 'expirationDate' => '', 'productCondition' => '1', 'preparingDay' => '1', 'discount' => 10, 'maxPurchaseQuantity' => 100, 'shipmentTemplate' => $ayar["n11Teslimat"], 'stockItems' => array( 'stockItem' => array( 'gtin' => $gtin, 'quantity' => 10, 'sellerStockCode' => '', 'n11CatalogId' => $gtin, 'attributes' => $getN11Varyant, 'optionPrice' => 0.99 ) ) ); $orderList = array( 'status' => 'Completed', 'buyerName' => '', 'orderNumber' => '', 'recipient' => '', 'period' => array( 'startDate' => date('d/m/Y',strtotime("-15 day")), 'endDate' => date('d/m/Y') ), 'sortForUpdateDate' => false, 'pagingData' => array( 'currentPage' => 0, 'pageSize' => 10, 'totalCount' => 200 ) ); // $result = $n11->SaveProduct($saveProduct); // $result = $n11->DetailedOrderList($orderList); // $result = $n11->GetProductList(200,0); print_r($getN11Varyant); // Kategori güncelle // foreach ( $getN11Kategori->categoryList->category as $k ) { // $islem = $db->prepare("INSERT INTO n11_cat SET categoryId = ?, name = ?"); // $islem = $islem->execute(array($k->id,$k->name)); // } } else { echo '!!! YETKİSİZ GİRİŞ !!!'; } ?>
💾 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