Answer the question
In order to leave comments, you need to log in
Properties not displayed after import from 1C?
Good afternoon! Bitrix:Business, 1C UT 11.4
The bitrix:catalog component is a complex and customized catalog.element in which there are groupings of properties.
But this is not the point, these groupings of properties group properties if the parameter is specified in bitrix:catalog, if it is less than zero or 0, then it displays everything in a row that is in the map and is filled.
But there is a problem that I can’t figure out at all..
Condition "I_BLOCK_GROUP_PROP" => "3" // Groupings infoblock
1.If you manually create a property in the goods infoblock, then the property will be displayed successfully
2.If the property is imported from 1C, then it will not be displayed!
3.The set of these properties is absolutely the same!!!
Condition "I_BLOCK_GROUP_PROP" => ""
What can affect the output if the properties in the infoblock are the same with the only difference being that some are imported from 1C and others are created by hand???
<div class="product-item-detail-properties mobile_none">
<?if ($arParams['I_BLOCK_GROUP_PROP'] > 0){?>
<?foreach ($arResult['PROPS_GROUP'] as $razdel):?>
<div class="prop_group open_list">
<?if($razdel['TUGLE'] == "Y"):?>
<div class="prop_group_title">
<span><?=$razdel['NAME']?></span>
<i class="trigger-arrow"></i>
</div>
<div class="opened_list">
<?foreach ($razdel['PROP'] as $prop):?>
<? if(!empty($prop['VALUE'])):?>
<div class="prop_tr">
<div class="prop_name">
<span class="value"><?=$prop['NAME'];?></span>
<?if(!empty($prop["DESCRIPTION_N"])):?>
<span class="prop_tooltip">
<span class="fa fa-question-circle-o"></span>
<span class="prop_desc">
<?=$prop["DESCRIPTION_N"]?>
</span>
</span>
<?endif;?>
</div>
<div class="prop_value">
<? if ($prop["PROPERTY_TYPE"] == "L") { ?>
<?if($prop["VALUE_XML_ID"] == "Y" || $prop["VALUE_XML_ID"] == "N"){?>
<span class="<?= ($prop["VALUE_XML_ID"] == "Y") ? 'yes' : 'no'; ?>"></span>
<?}else{?>
<?=$prop['VALUE']?>
<?}?>
<? } else {
if (is_array($prop['VALUE'])) {
echo implode(", ", $prop['VALUE']);
} else {
echo $prop['VALUE'];
}
}?>
</div>
</div>
<?endif;?>
<?endforeach?>
</div>
<?endif;?>
</div>
<?endforeach?>
<?}else{?>
<div class="prop_box">
<?foreach($arResult['PROPERTIES'] as $prop):?>
if(in_array($prop['CODE'],["CML2_BASE_UNIT","MORE_PHOTO"])){continue;}
?>
<? if(!empty($prop['VALUE'])):?>
<div class="prop_tr">
<div class="prop_name">
<span class="value"><?=$prop['NAME'];?></span>
<?if(!empty($prop["HINT"])):?>
<span class="prop_tooltip">
<span class="fa fa-question-circle-o"></span>
<span class="prop_desc">
<?=$prop["HINT"]?>
</span>
</span>
<?endif;?>
</div>
<div class="prop_value">
<? if ($prop["PROPERTY_TYPE"] == "L") { ?>
<?if($prop["VALUE_XML_ID"] == "Y" || $prop["VALUE_XML_ID"] == "N"){?>
<span class="<?= ($prop["VALUE_XML_ID"] == "Y") ? 'yes' : 'no'; ?>"></span>
<?}else{?>
<?=$prop['VALUE']?>
<?}?>
<? } else {
if (is_array($prop['VALUE'])) {
echo implode(",", $prop['VALUE']);
} else {
echo $prop['VALUE'];
}
}?>
</div>
</div>
<?endif;?>
<?endforeach;?>
</div>
<?}?>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question