$nonrefill_orders_today = array(); $order_qty = array(); if (count($p['articles']) > 1) { $size[$a_counter] = '<b>ALL</b>'; $sold_last_month_nopromo[$a_counter] = '<b>' . intval($p['fc_base_monthly']) . '</b>'; $sold_last_month[$a_counter] = '<b>' . intval($p['sold_monthly_1']) . '</b>'; $stock[$a_counter] = '<b>' . intval($p['qty_stock']) . '</b>'; $stock_target[$a_counter] = '<b>-</b>'; $qty_ordered[$a_counter] = '<b>' . intval($p['qty_order']) . '</b>'; $nonrefill_orders[$a_counter] = '<b>-</b>'; $nonrefill_orders_today[$a_counter] = '<b>-</b>'; $order_qty[$a_counter] = '<b>-</b>'; } foreach ($p['articles'] as $aid => $a) { $a_counter++; $count_nonrefill_orders = $class_do->countOrdersNonRefillByArticle($pid, $aid); $count_nonrefill_orders_today = $class_do->countOrdersNonRefillByArticle($pid, $aid); $size[$a_counter] = $a['article_length'] > 0 ? textLength($a['article_length']) : '<span class="notice">None</span>'; $sold_last_month_nopromo[$a_counter] = intval($a['article_fc_base_monthly']); $sold_last_month[$a_counter] = intval($a['article_sold_monthly_1']); $stock[$a_counter] = intval($a['article_stock']); $stock_target[$a_counter] = $obj_product->getDIOHstockTarget($aid); $qty_ordered[$a_counter] = intval($a['article_orders_qty']); $nonrefill_orders[$a_counter] = $count_nonrefill_orders; $nonrefill_orders_today[$a_counter] = $count_nonrefill_orders_today; if ($obj_product->isArticleKilled($aid)) { //Set text of killed article to gray $size[$a_counter] = '<span class="notice">' . $size[$a_counter] . '</span>'; $sold_last_month_nopromo[$a_counter] = '<span class="notice">' . $sold_last_month_nopromo[$a_counter] . '</span>'; $sold_last_month[$a_counter] = '<span class="notice">' . $sold_last_month[$a_counter] . '</span>'; $stock[$a_counter] = '<span class="notice">' . $stock[$a_counter] . '</span>';