while ($arItemTeg = $tegs->GetNext()){
$regExp = '#'.abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['TIP_TOVARA']['VALUE_ENUM_ID']))).'#';
$regExp2 = '#'.abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['AFFILIATION']['VALUE_ENUM_ID']))).'#';
$regExp3 = '#'.abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['TSVET_OSNOV']['VALUE_ENUM_ID']))).'#';
$regExp4 = '#'.$arResult['PROPERTIES']['AFFILIATION']['ID'].'#';
if (preg_match($regExp, $arItemTeg["PROPERTY_PAGE_URL_VALUE"])) {
$tegs_massive[] = array($arItemTeg["PROPERTY_PAGE_URL_VALUE"], $arItemTeg['PROPERTY_GOOD_URL_VALUE'], $arItemTeg['NAME']);
}
}
foreach ($tegs_massive as $value) {
if (!preg_match($regExp4, $value[0]) || preg_match($regExp2, $value[0])) {
?>
<a href="<?=$value[1];?>"><?=$value[2];?></a><br>
<?
}
}
while ($arItemTeg = $tegs->GetNext()){
$regExp = '#(' . abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['TIP_TOVARA']['VALUE_ENUM_ID']))) . '|' . abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['AFFILIATION']['VALUE_ENUM_ID']))) . '|' . abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['TSVET_OSNOV']['VALUE_ENUM_ID']))) . ')#';
if (preg_match_all($regExp, $arItemTeg["PROPERTY_PAGE_URL_VALUE"])) {
$tegs_massive[$arItemTeg['NAME']] = array($arItemTeg['PROPERTY_GOOD_URL_VALUE'], $arItemTeg['NAME']);
}
}
/catalog/?set_filter=y&MAX_SMART_FILTER_687_499686177=Y&MAX_SMART_FILTER_940_512731071=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_4089903629=Y&MAX_SMART_FILTER_940_1770559273=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_499686177=Y&MAX_SMART_FILTER_940_2162897436=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_499686177=Y&MAX_SMART_FILTER_940_512731071=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_3162991818=Y&MAX_SMART_FILTER_940_1770559273=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_3162991818=Y&MAX_SMART_FILTER_940_512731071=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_630078832=Y&MAX_SMART_FILTER_940_1770559273=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_630078832=Y&MAX_SMART_FILTER_940_512731071=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_4089903629=Y&MAX_SMART_FILTER_723_703376357=Y&MAX_SMART_FILTER_723_780234748=Y&MAX_SMART_FILTER_723_1501978474=Y&MAX_SMART_FILTER_723_3079159366=Y&MAX_SMART_FILTER_723_1903002705=Y&MAX_SMART_FILTER_723_1345327937=Y
while ($arItemTeg = $tegs->GetNext()){
$regExp = '#'.abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['TIP_TOVARA']['VALUE_ENUM_ID']))).'#';
$regExp2 = '#'.abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['AFFILIATION']['VALUE_ENUM_ID']))).'#';
$regExp3 = '#'.abs(crc32(htmlspecialcharsbx($arResult['PROPERTIES']['TSVET_OSNOV']['VALUE_ENUM_ID']))).'#';
if (preg_match($regExp, $arItemTeg["PROPERTY_PAGE_URL_VALUE"]) && preg_match($regExp2, $arItemTeg["PROPERTY_PAGE_URL_VALUE"]) && preg_match($regExp3, $arItemTeg["PROPERTY_PAGE_URL_VALUE"])) {
$tegs_massive[$arItemTeg['NAME']] = array($arItemTeg['PROPERTY_GOOD_URL_VALUE'], $arItemTeg['NAME']);
}
}
while ($arItemTeg = $tegs->GetNext()){
foreach ($arResult['PROPERTIES'] as $kay => $values) {
$regExp = '#'.abs(crc32(htmlspecialcharsbx($values['VALUE_ENUM_ID']))).'#';
if(abs(crc32(htmlspecialcharsbx($values['VALUE_ENUM_ID']))) != 0){
if (preg_match($regExp, $arItemTeg["PROPERTY_PAGE_URL_VALUE"])) {
$tegs_massive[$arItemTeg['NAME']] = array($arItemTeg['PROPERTY_GOOD_URL_VALUE'],
$arItemTeg['NAME']);
}
}
}
}
/catalog/?set_filter=y&MAX_SMART_FILTER_687_4089903629=Y&MAX_SMART_FILTER_723_703376357=Y&MAX_SMART_FILTER_723_780234748=Y&MAX_SMART_FILTER_723_1501978474=Y&MAX_SMART_FILTER_723_3079159366=Y&MAX_SMART_FILTER_723_1903002705=Y&MAX_SMART_FILTER_723_1345327937=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_4089903629=Y&MAX_SMART_FILTER_940_512731071=Y&MAX_SMART_FILTER_723_703376357=Y&MAX_SMART_FILTER_723_780234748=Y&MAX_SMART_FILTER_723_1501978474=Y
/catalog/?set_filter=y&MAX_SMART_FILTER_687_4089903629=Y&MAX_SMART_FILTER_603_3673936931=Y&MAX_SMART_FILTER_605_2680849975=Y&MAX_SMART_FILTER_605_3743148538=Y&MAX_SMART_FILTER_605_2336599219=Y
Спасибо что меня направили в нужное направление))