<?php set_time_limit(0); ini_set('memory_limit', '512M'); use_class('jng_sp'); use_class('jng_sp_upload'); use_class('jng_sp_orders'); use_class('products_ean'); $class_sp = new jng_sp(); $class_ju = new jng_sp_upload(); $class_jo = new jng_sp_orders(); $class_ean = new products_ean(); $runinlocal = DB_SERVER == 'localhost'; function stockStatusStrength($stock_status) { switch ($stock_status) { case 'D': $sss = 1; break; case 'P': case 'R': $sss = 2; break; default: $sss = 3; } return $sss; } $content = ''; $jng_sp_active = $class_sp->retrieveList("active_status=1"); foreach ($jng_sp_active as $temp_sp) {
<?php use_class('jng_sp'); use_class('jng_sp_catalog'); use_class('jng_sp_upload'); use_class('CategoryTop'); use_class('SalesPartner'); $class_sp = new jng_sp(); $class_jc = new jng_sp_catalog(); $class_ju = new jng_sp_upload(); //SP SETTING salesPartnerCombo(); //GET PAGE $page = 1; if (isset($_GET['page'])) { $page = $_GET['page']; } //SUBMIT ACTION if (isset($_POST['me_action'])) { if ($_POST['me_action'] == 'SETSPUPLOADSTATUS') { if ($_POST['submit'] == 'Reupload') { $upload_sp_id = $_POST['upload_sp_id']; header("Location: ?open=sp-catalog-generator&jng_sp_id={$upload_sp_id}&reupload=true"); exit; } else { $upload_id = tep_db_prepare_input($_POST['upload_id']); $status = $_POST['submit'] == 'Success' ? 'S' : 'F'; $class_ju->updateStatus($upload_id, $status, $session_userinfo['username']); header("Location: ?open=sp-catalog"); exit; }
require_once '../confy.php'; require_once '../functions.php'; require_once '../functions-2.php'; require_once '../functions-xml.php'; require_once DIR_WS_FUNCTIONS . 'html_output.php'; tep_db_connect(); use_class('logger'); $logger = new logger('cron', 'sp-2-catalog-uploader'); use_class('jng_sp_catalog'); use_class('jng_sp_upload'); use_class('products_minierp'); use_class('products_articles'); use_class('jng_sp'); $sp_specsets = load_config('sp-specific-settings'); $class_jc = new jng_sp_catalog(); $class_ju = new jng_sp_upload(); $class_pm = new products_minierp(); $class_pa = new products_articles(); $class_sp = new jng_sp(); $deleted_eans_reported = null; $jng_sp_id = 2; $sp_detail = $class_sp->retrieveDetail($jng_sp_id); //echo something after every $echo_steps in the loop $echo_steps = 100; //RETRIEVE PRODUCT CATEGORIES $product_categories_name = array(); $catq = tep_db_query("SELECT c.categories_id, cd.categories_name" . " FROM categories c" . " INNER JOIN categories_description cd" . " ON cd.categories_id=c.categories_id" . " AND cd.language_id={$sp_detail['languages_id']}" . " WHERE c.parent_id=0"); while ($row = tep_db_fetch_array($catq)) { $product_categories_name[$row['categories_id']] = $row['categories_name']; } function translateOttoCategory($category_id)
<?php die('ALREADY MOVED TO cron/orders-confiramtion.php'); use_class('Order'); use_class('jng_sp'); use_class('jng_sp_upload'); use_class('jng_sp_orders'); $class_sp = new jng_sp(); $class_ju = new jng_sp_upload(); $class_jo = new jng_sp_orders(); $runinlocal = DB_SERVER == 'localhost'; $content = ''; $sp_detail = array(); $data = array(); if (isset($_GET['reconfirm']) && $_GET['reconfirm'] != '') { $order_id = tep_db_prepare_input($_GET['reconfirm']); $data_rc = $class_jo->getReconfirmReturns($order_id); $jng_sp_id = $data_rc['orders'][0]['jng_sp_id']; $sp_detail[$jng_sp_id] = $class_sp->retrieveDetail($jng_sp_id); $data[$jng_sp_id] = $data_rc; } else { $jng_sp_active = $class_sp->retrieveList("", "name"); $jng_sp_name_array = array(); foreach ($jng_sp_active as $temp_sp) { $jng_sp_id = $temp_sp['jng_sp_id']; $jng_sp_name_array[$jng_sp_id] = $temp_sp['name']; $sp_detail[$jng_sp_id] = $temp_sp; $data[$jng_sp_id] = $class_jo->getUnconfirmedReturns($jng_sp_id); } } foreach ($data as $jng_sp_id => $data_sp) {
<?php ini_set('memory_limit', '256M'); use_class('Product'); use_class('jng_sp'); use_class('jng_sp_catalog'); use_class('jng_sp_upload'); use_class('products_brand'); $class_sp = new jng_sp(); $class_jc = new jng_sp_catalog(); $class_ju = new jng_sp_upload(); $class_pb = new products_brand(); //SP SETTING salesPartnerCombo(); //SP Lazada & Zalora $sp_local_id = array('1001', '1002', '1003', '1005'); if (isset($_GET['top_cat_id']) && $_GET['top_cat_id'] != '') { $category_top_id = tep_db_prepare_input($_GET['top_cat_id']); } $status = $class_ju->retrieveNotSetStatus($jng_sp_id, 'CAT,PRI'); if ($status !== false) { $hidemenu = $hidemenuscript == '' ? '' : '&hidemenu=true'; header("Location: ?open=sp-catalog{$hidemenu}"); exit; } if ($jng_sp_id == '1') { //NECKERMANN.DE UPLOAD PROCESS //check cron/sp-1-catalog-updater.php $content .= '<h3 class="red">' . $jng_sp_name . ': Stock Update is managed by cron</h3>'; } elseif ($jng_sp_id == '2') { //OTTO.DE UPLOAD PROCESS
use_class('jng_sp'); use_class('jng_sp_catalog'); use_class('jng_sp_catalog_params'); use_class('jng_sp_upload'); use_class('products_minierp'); use_class('products_articles'); use_class('products_linking'); use_class('products_brand'); use_class('styles'); use_class('products_materials'); use_class('Category'); use_class('SalesPartner'); $class_sp = new jng_sp(); $class_jc = new jng_sp_catalog(); $class_jcp = new jng_sp_catalog_params(); $class_ju = new jng_sp_upload(); $class_pl = new products_linking(); $class_s = new styles(); $class_pb = new products_brand(); $class_pa = new products_articles(); $class_pmat = new products_materials(); $class_pm = new products_minierp(); //load brands $brandlist = $class_pb->retrieveList(); //SP SETTING salesPartnerCombo(); $create_image_zip = true; /* Moved to confy (used also on sp-catalog-updater) and changed to LAZADA_ZALORA_DEFAULT_SALE_END_DATE define('DEFAULT_SALE_END_DATE', '2016-10-01'); */ //direct download means the file is not sent automatically to SP