18 if (trim($searchString) ===
'')
32 '*SEARCHABLE_CONTENT' => $searchString,
33 'PRODUCT_BARCODE' => $searchString .
'%',
38 'filter' => $productFilter,
39 'searchString' => $searchString,
40 'load_offers' =>
false,
43 if ($iblockInfo->canHaveSku())
45 $subQueryPropererties = [
46 'CHECK_PERMISSIONS' =>
'Y',
47 'MIN_PERMISSION' =>
'R',
50 'IBLOCK_ID' => $iblockInfo->getSkuIblockId(),
51 '*SEARCHABLE_CONTENT' => $searchString,
57 '*SEARCHABLE_CONTENT' => $searchString,
58 'PRODUCT_BARCODE' => $searchString .
'%',
59 '=ID' => \CIBlockElement::SubQuery(
'PROPERTY_' . $iblockInfo->getSkuPropertyId(), $subQueryPropererties),
63 if (!empty($products))
66 '!=ID' => array_keys($products),
73 '*SEARCHABLE_CONTENT' => $searchString,
74 'PRODUCT_BARCODE' => $searchString .
'%',
79 'filter' => $productFilter,
80 'offer_filter' => $offersFilter,
81 'searchString' => $searchString,
84 array_push($products, ...$offers);