}
 $arNewItemsList = array();
 foreach ($arResult['ITEMS'] as $key => $arItem) {
     $arItem['CHECK_QUANTITY'] = false;
     if (!isset($arItem['CATALOG_MEASURE_RATIO'])) {
         $arItem['CATALOG_MEASURE_RATIO'] = 1;
     }
     if (!isset($arItem['CATALOG_QUANTITY'])) {
         $arItem['CATALOG_QUANTITY'] = 0;
     }
     $arItem['CATALOG_QUANTITY'] = 0 < $arItem['CATALOG_QUANTITY'] && is_float($arItem['CATALOG_MEASURE_RATIO']) ? floatval($arItem['CATALOG_QUANTITY']) : intval($arItem['CATALOG_QUANTITY']);
     $arItem['CATALOG'] = false;
     if (!isset($arItem['CATALOG_SUBSCRIPTION']) || 'Y' != $arItem['CATALOG_SUBSCRIPTION']) {
         $arItem['CATALOG_SUBSCRIPTION'] = 'N';
     }
     CIBlockPriceTools::getLabel($arItem, $arParams['LABEL_PROP']);
     $productPictures = CIBlockPriceTools::getDoublePicturesForItem($arItem, $arParams['ADD_PICT_PROP']);
     if (empty($productPictures['PICT'])) {
         $productPictures['PICT'] = $arEmptyPreview;
     }
     if (empty($productPictures['SECOND_PICT'])) {
         $productPictures['SECOND_PICT'] = $productPictures['PICT'];
     }
     $arItem['PREVIEW_PICTURE'] = $productPictures['PICT'];
     $arItem['PREVIEW_PICTURE_SECOND'] = $productPictures['SECOND_PICT'];
     $arItem['SECOND_PICT'] = true;
     $arItem['PRODUCT_PREVIEW'] = $productPictures['PICT'];
     $arItem['PRODUCT_PREVIEW_SECOND'] = $productPictures['SECOND_PICT'];
     if ($arResult['MODULES']['catalog']) {
         $arItem['CATALOG'] = true;
         if (!isset($arItem['CATALOG_TYPE'])) {
Example #2
0
$arResult['CHECK_QUANTITY'] = false;
if (!isset($arResult['CATALOG_MEASURE_RATIO']))
	$arResult['CATALOG_MEASURE_RATIO'] = 1;
if (!isset($arResult['CATALOG_QUANTITY']))
	$arResult['CATALOG_QUANTITY'] = 0;
$arResult['CATALOG_QUANTITY'] = (
	0 < $arResult['CATALOG_QUANTITY'] && is_float($arResult['CATALOG_MEASURE_RATIO'])
	? floatval($arResult['CATALOG_QUANTITY'])
	: intval($arResult['CATALOG_QUANTITY'])
);
$arResult['CATALOG'] = false;
if (!isset($arResult['CATALOG_SUBSCRIPTION']) || 'Y' != $arResult['CATALOG_SUBSCRIPTION'])
	$arResult['CATALOG_SUBSCRIPTION'] = 'N';

CIBlockPriceTools::getLabel($arResult, $arParams['LABEL_PROP']);

$productSlider = CIBlockPriceTools::getSliderForItem($arResult, $arParams['ADD_PICT_PROP'], 'Y' == $arParams['ADD_DETAIL_TO_SLIDER']);
if (empty($productSlider))
{
	$productSlider = array(
		0 => $arEmptyPreview
	);
}
$productSliderCount = count($productSlider);
$arResult['SHOW_SLIDER'] = true;
$arResult['MORE_PHOTO'] = $productSlider;
$arResult['MORE_PHOTO_COUNT'] = count($productSlider);

if ($arResult['MODULES']['catalog'])
{