예제 #1
0
            if ($arProp['ID'] == $arSKU['SKU_PROPERTY_ID']) {
                continue;
            }
            $arProp['USER_TYPE'] = (string) $arProp['USER_TYPE'];
            $strPropName = '[' . $arProp['ID'] . ']' . ('' != $arProp['CODE'] ? '[' . $arProp['CODE'] . ']' : '') . ' ' . $arProp['NAME'];
            if ('' == $arProp['CODE']) {
                $arProp['CODE'] = $arProp['ID'];
            }
            $arAllOfferPropList[$arProp['CODE']] = $strPropName;
            if ('F' == $arProp['PROPERTY_TYPE']) {
                $arFileOfferPropList[$arProp['CODE']] = $strPropName;
            }
            if ('N' != $arProp['MULTIPLE']) {
                continue;
            }
            if ('L' == $arProp['PROPERTY_TYPE'] || 'E' == $arProp['PROPERTY_TYPE'] || 'S' == $arProp['PROPERTY_TYPE'] && 'directory' == $arProp['USER_TYPE'] && CIBlockPriceTools::checkPropDirectory($arProp)) {
                $arTreeOfferPropList[$arProp['CODE']] = $strPropName;
            }
        }
        $arTemplateParameters['OFFER_ADD_PICT_PROP'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_OFFER_ADD_PICT_PROP'), 'TYPE' => 'LIST', 'MULTIPLE' => 'N', 'ADDITIONAL_VALUES' => 'N', 'REFRESH' => 'N', 'DEFAULT' => '-', 'VALUES' => $arFileOfferPropList);
        $arTemplateParameters['OFFER_TREE_PROPS'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_OFFER_TREE_PROPS'), 'TYPE' => 'LIST', 'MULTIPLE' => 'Y', 'ADDITIONAL_VALUES' => 'N', 'REFRESH' => 'N', 'DEFAULT' => '-', 'VALUES' => $arTreeOfferPropList);
    }
}
if ($boolCatalog) {
    $arTemplateParameters['SHOW_DISCOUNT_PERCENT'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_SHOW_DISCOUNT_PERCENT'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
    $arTemplateParameters['SHOW_OLD_PRICE'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_SHOW_OLD_PRICE'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'N');
}
if (isset($arCurrentValues['VIEW_MODE']) && ('SLIDER' == $arCurrentValues['VIEW_MODE'] || 'BANNER' == $arCurrentValues['VIEW_MODE'])) {
    $arTemplateParameters['ROTATE_TIMER'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_ROTATE_TIMER'), 'TYPE' => 'STRING', 'DEFAULT' => '30');
    $arTemplateParameters['SHOW_PAGINATION'] = array('PARENT' => 'VISUAL', 'NAME' => GetMessage('CP_BCT_TPL_SHOW_PAGINATION'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y');
}