if (tep_db_num_rows($article_check) > 0) {
                                     $article = tep_db_fetch_array($article_check);
                                     $item['products_articles_id'] = $article['products_articles_id'];
                                     $item['products_ean'] = $article['products_ean'];
                                 }
                             }
                         }
                         foreach ($item as $ik => $iv) {
                             $item[$ik] = utf8_decode($iv);
                         }
                         $item_id = $class_jo->addItem($order_id, $item);
                         $products_created++;
                     }
                 }
                 $class_jo->leadtimeSetStart($leadtime_start_date, '', $order_id);
                 $class_jd->addImportedOrder($file['jng_sp_download_id'], $order_id);
                 $to_name = $order['customer_billing_firstname'] . ' ' . str_replace("}}}", "", str_replace("{{{", "", $order['customer_billing_lastname']));
                 $to_email_address = $order['customer_billing_email'];
                 $item_mail = $class_jo->retrieveItems($order_id);
                 include DIR_WS_EMAILS . $languages[2]['path'] . '/otto.de-orders-confirmation.php';
                 $from_email_name = FROM_EMAIL_NAME;
                 $from_email_address = FROM_EMAIL_ADDRESS;
                 if (!is_null($to_email_address) && $to_email_address != '') {
                     $sent = tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address);
                 }
             }
         }
     }
 } elseif ($jng_sp_id == '1') {
     /////////////////////
     //  Neckermann DE  //
         $customer_shipping_lastname = array_pop($cbn_split);
         $customer_shipping_firstname = implode(' ', $cbn_split);
     }
     $customer_shipping_id = generateCustomerIDManually($customer_shipping_postcode, $customer_shipping_phone, $customer_shipping_lastname, $customer_shipping_firstname);
     $customer_shipping_email = '';
     //Delivery Date
     $expected_delivery_date = 'null';
     $expected_delivery_date_from = 'null';
     $expected_delivery_date_until = 'null';
     //Order Price and Payment Setting
     //$shipping_cost = 0;
     $payment_status = 0;
     $order_id = Order::createNewSalesPartnerOrder($jng_sp_id, $file['name'], $sp_detail['jng_id'], $order_date, $import_date, $shipment_id, $order_no, $customer_billing_id, $customer_billing_title, $customer_billing_firstname, $customer_billing_lastname, $customer_billing_address, $customer_billing_address2, $customer_billing_city, $customer_billing_postcode, $customer_billing_country, $customer_billing_phone, $customer_billing_phone2, $customer_billing_email, $customer_shipping_id, $customer_shipping_title, $customer_shipping_firstname, $customer_shipping_lastname, $customer_shipping_address, $customer_shipping_address2, $customer_shipping_city, $customer_shipping_postcode, $customer_shipping_country, $customer_shipping_phone, $customer_shipping_phone2, $customer_shipping_email, $expected_delivery_date, $expected_delivery_date_from, $expected_delivery_date_until, $price_after_provision, $shipping_cost, $payment_method, $payment_status);
     if ($order_id !== false) {
         $order_created++;
         $class_jd->addImportedOrder($download_id, $order_id);
     }
 }
 if ($order_id !== false) {
     $item_count++;
     $total_price += $price_after_provision;
     $ordered_quantity = 1;
     //Get article based on Article Number / SKU
     list($pcode, $plength) = explode('_', $billing_product_code);
     $product = Product::loadObjectFromProductCode($pcode);
     if ($product === false) {
         $error_product = true;
         $product_id = 0;
         $article_id = 0;
         $ean_no = '';
     } else {