$order_product['sort'] = ' '; $order_product['long_id'] = ' '; $order_product['model'] = 'Total'; //$order_product['name'] = ' '; $order_product['price'] = ' '; $order_product['qty'] = strval($op_total_product); $order_product['price2'] = displayCurrency($order_currency, $op_total_price); $order_product['source'] = ' '; $order_product['nick'] = ' '; $order_product['login'] = '******'; $order_products[] = $order_product; $op_usetotal = true; $content .= '<div style="width:940px;">'; //$expected_delivery_date = ($expected_delivery_date>0) ? date('d.m.Y', $expected_delivery_date) : 'N/A'; //$content .= '<h2>Ordered Products <span style="font-size:0.8em;">⋅ Expected Delivery Date is '.$expected_delivery_date.'</span></h2>'; $content .= '<h2>Ordered Products <span style="font-size:0.8em;">⋅ ' . expectedShippingDateFromHH($worst_status, $worst_status_date) . '</span></h2>'; $content .= tep_draw_table('order_products', $order_products, false, $op_usetotal); $content .= '<div id="op-history" style="display:none;"></div>'; $content .= '</div>'; $cancelallbutton = $cancelable ? '<input type="button" id="cancelall" class="red" value="Cancel All Products" />' : ''; $content = str_replace('{CANCELALLBUTTON}', $cancelallbutton, $content); /* //GET ORDER PRODUCTS CANCELLED $op_canceleds_query = tep_db_query("SELECT pc.visible_status, op.orders_products_id, op.products_id, op.products_model, op.products_name, op.products_quantity, op.final_price, op.products_problem FROM orders_products_backup op LEFT JOIN products_configurator pc ON pc.products_id=op.products_id WHERE op.orders_id=" . $order_id); if(tep_db_num_rows($op_canceleds_query)>0) { $op_canceleds = array(); $op_canceleds[0]['action'] = ' '; $op_canceleds[0]['promode'] = 'Code'; $op_canceleds[0]['name'] = 'Product Name'; $op_canceleds[0]['products_quantity'] = 'Qty'; $op_canceleds[0]['final_price_piece'] = 'Price/piece';
//EXPECTED SHIPMENT DATE FROM HH //only show this block if no PDD is found $content .= '<h3'; if ($pdd_total > 0) { $content .= ' class="notice">» Expexted shipment date is ' . 'replaced with above promised delivery date'; } else { if ($all_products_canceled) { $content .= ' class="notice">» No expected Shipment ' . 'Date because all products are canceled'; } elseif ($all_products_sent) { $content .= ' class="green">» No expected Shipment ' . 'Date because products are already sent'; } else { $depot_print_confirmed = false; if ($all_products_depot_ready && $total_products_depot_ready_printed == $total_products_depot_ready) { $depot_print_confirmed = true; } $content .= '>» ' . expectedShippingDateFromHH($worst_status, $worst_status_date, $depot_print_confirmed); } } $content .= '</h3>'; //LOGISTIC PROCESS if (is_null($order['logistic_process'])) { if ($all_products_sent) { $content .= '<h3 class="red" style="font-weight:normal;">» This order is sent before we start logging HH Logistic process or it is closed manually (internal order)</h3>'; } else { $content .= '<h3 style="font-weight:normal;">» This order is not yet processed in HH Logistic</h3>'; } } else { $reset_link = '<span id="clear-logistic_process" class="blue pointer">Click here to clear this flag</span>'; $content .= '<h3 class="green" style="font-weight:normal;">» This order has been processed in HH Logistic on: <strong>' . date('d.m.Y H:i:s', strtotime($order['logistic_process'])) . '</strong>, ' . $reset_link . '</h3>'; } $header = 'Prevent Double Sendings';