} $quoteData = array(); foreach ($productRows as $productRow) { ?> <tr><?php foreach ($arResult['SELECTED_HEADERS'] as $headerID) { $arHead = isset($arHeaders[$headerID]) ? $arHeaders[$headerID] : null; if (!$arHead) { continue; } $headerID = $arHead['id']; if ($headerID === 'PRODUCT_ID') { // Special logic for PRODUCT_ROWS: expand product in 3 columns ?> <td><?php echo isset($productRow['PRODUCT_ID']) && intval($productRow['PRODUCT_ID']) > 0 ? htmlspecialcharsbx(CCrmProductRow::GetProductName($productRow)) : ''; ?> </td><?php ?> <td><?php echo CCrmProductRow::GetPrice($productRow, ''); ?> </td><?php ?> <td><?php echo CCrmProductRow::GetQuantity($productRow, ''); ?> </td><?php continue; } elseif ($headerID === 'ENTITIES_LINKS') { ?>